1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-06-01 18:22:17 +00:00

Mitigate problem with microscropic editor in zoomin view

See #3098
This commit is contained in:
Jermolene
2018-01-23 16:22:35 +00:00
parent 42660b05a7
commit 327fed30c8
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ exports.resizeTextAreaToFit = function(domNode,minHeight) {
scrollTop = container.scrollTop;
// Measure the specified minimum height
domNode.style.height = minHeight;
var measuredHeight = domNode.offsetHeight;
var measuredHeight = domNode.offsetHeight || parseInt(minHeight,10);
// Set its height to auto so that it snaps to the correct height
domNode.style.height = "auto";
// Calculate the revised height