1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Restored height fixer for text editor

This commit is contained in:
Jeremy Ruston 2012-07-12 18:53:20 +01:00
parent 84a1337792
commit 6ff361cdc2

View File

@ -100,7 +100,7 @@ TextEditor.prototype.fixHeight = function() {
var prevWrapperHeight = wrapper.style.height; var prevWrapperHeight = wrapper.style.height;
wrapper.style.height = textarea.style.height + "px"; wrapper.style.height = textarea.style.height + "px";
textarea.style.overflow = "hidden"; textarea.style.overflow = "hidden";
// textarea.style.height = "1px"; textarea.style.height = "1px";
textarea.style.height = Math.max(textarea.scrollHeight,MIN_TEXT_AREA_HEIGHT) + "px"; textarea.style.height = Math.max(textarea.scrollHeight,MIN_TEXT_AREA_HEIGHT) + "px";
wrapper.style.height = prevWrapperHeight; wrapper.style.height = prevWrapperHeight;
} }