diff options
Diffstat (limited to 'static/functions/global.js')
-rw-r--r-- | static/functions/global.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/functions/global.js b/static/functions/global.js index fd44b4f..9d4e67f 100644 --- a/static/functions/global.js +++ b/static/functions/global.js @@ -64,8 +64,8 @@ function hexify(str) { function resize(id) { var textarea = document.getElementById(id); if (textarea.scrollHeight > textarea.clientHeight) { - textarea.style.overflowY = 'hidden'; - textarea.style.height = textarea.scrollHeight + textarea.style.fontSize + 'px'; + //textarea.style.overflowY = 'hidden'; + textarea.style.height = Math.min(1000, textarea.scrollHeight + textarea.style.fontSize) + 'px'; } } |