summaryrefslogtreecommitdiffstats
path: root/jquery.autosize.js
diff options
context:
space:
mode:
Diffstat (limited to 'jquery.autosize.js')
-rw-r--r--jquery.autosize.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery.autosize.js b/jquery.autosize.js
index 8f1c798..2e40a91 100644
--- a/jquery.autosize.js
+++ b/jquery.autosize.js
@@ -176,7 +176,7 @@
mirror.value += options.append || '';
mirror.style.overflowY = ta.style.overflowY;
- original = parseFloat(ta.style.height);
+ original = parseFloat(ta.style.height) || 0;
// Setting scrollTop to zero is needed in IE8 and lower for the next step to be accurately applied
mirror.scrollTop = 0;