From 6ff361cdc26165cb956256e12734f22d3cf24a83 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 12 Jul 2012 18:53:20 +0100 Subject: [PATCH] Restored height fixer for text editor --- core/modules/macros/edit/editors/texteditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/macros/edit/editors/texteditor.js b/core/modules/macros/edit/editors/texteditor.js index eb9fbe671..118139b6d 100644 --- a/core/modules/macros/edit/editors/texteditor.js +++ b/core/modules/macros/edit/editors/texteditor.js @@ -100,7 +100,7 @@ TextEditor.prototype.fixHeight = function() { var prevWrapperHeight = wrapper.style.height; wrapper.style.height = textarea.style.height + "px"; textarea.style.overflow = "hidden"; -// textarea.style.height = "1px"; + textarea.style.height = "1px"; textarea.style.height = Math.max(textarea.scrollHeight,MIN_TEXT_AREA_HEIGHT) + "px"; wrapper.style.height = prevWrapperHeight; }