From daffc427f9e4d0bba1a8dfc6bc8b66ed602ba945 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 19 Jun 2019 11:08:05 -0600 Subject: [PATCH] Another attempt to solve the tracker comment height issue --- api/js/etemplate/et2_widget_htmlarea.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_widget_htmlarea.js b/api/js/etemplate/et2_widget_htmlarea.js index 0878585003..024ab094aa 100644 --- a/api/js/etemplate/et2_widget_htmlarea.js +++ b/api/js/etemplate/et2_widget_htmlarea.js @@ -227,8 +227,11 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([ { if (this. editor) this.editor.remove(); this.htmlNode = jQuery(document.createElement(this.options.readonly ? "div" : "textarea")) - .css('height', this.options.height) .addClass('et2_textbox_ro'); + if(this.options.height) + { + this.htmlNode.css('height', this.options.height) + } this.editor = null; this.setDOMNode(this.htmlNode[0]); this.set_value(value); @@ -238,8 +241,11 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([ if(!this.editor) { this.htmlNode = jQuery(document.createElement("textarea")) - .css('height', (this.options.editable_height ? this.options.editable_height : this.options.height)) .val(value); + if(this.options.height) + { + this.htmlNode.css('height', (this.options.editable_height ? this.options.editable_height : this.options.height)); + } this.setDOMNode(this.htmlNode[0]); this.init_editor(); }