Browse Source

Fixed cell overflow on text elements

development
Godwin 8 years ago
committed by GitHub
parent
commit
e24a0a616b
  1. 2
      app/helpers/application_helper.rb

2
app/helpers/application_helper.rb

@ -1680,7 +1680,7 @@ module ApplicationHelper
editor_attributes = { class: 'cell-editor', data: { value: raw_value.to_s } } editor_attributes = { class: 'cell-editor', data: { value: raw_value.to_s } }
# create the control but add the original value to set the width and height # create the control but add the original value to set the width and height
editor_value = content_tag(:span, CGI::escapeHTML(value), class: 'value') editor_value = content_tag(:div, value, class: 'value')
if (options[:column_options] || {})[column].present? if (options[:column_options] || {})[column].present?
value = (editor_value.html_safe + select_tag(column, options_for_select([['', '']] + options[:column_options][column], raw_value), editor_attributes)).html_safe value = (editor_value.html_safe + select_tag(column, options_for_select([['', '']] + options[:column_options][column], raw_value), editor_attributes)).html_safe
elsif data[:column_types][column] == :text elsif data[:column_types][column] == :text

Loading…
Cancel
Save