Restored height fixer for text editor

print-window-tiddler
Jeremy Ruston 2012-07-12 18:53:20 +01:00
rodzic 84a1337792
commit 6ff361cdc2
1 zmienionych plików z 1 dodań i 1 usunięć
core/modules/macros/edit/editors

Wyświetl plik

@ -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;
}