From e24a0a616bc75318edfa60ec56fde6c90aad6239 Mon Sep 17 00:00:00 2001 From: Godwin Date: Thu, 25 Aug 2016 07:58:55 -0700 Subject: [PATCH] Fixed cell overflow on text elements --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a1091c7..091d79b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1680,7 +1680,7 @@ module ApplicationHelper 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 - editor_value = content_tag(:span, CGI::escapeHTML(value), class: 'value') + editor_value = content_tag(:div, value, class: 'value') 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 elsif data[:column_types][column] == :text