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:
parent
84a1337792
commit
6ff361cdc2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user