diff --git a/autosize.jquery.json b/autosize.jquery.json index dbe0eaa..aacccd1 100644 --- a/autosize.jquery.json +++ b/autosize.jquery.json @@ -2,7 +2,7 @@ "name": "autosize", "title": "Autosize", "description": "Automatically adjust textarea height based on user input.", - "version": "1.18.8", + "version": "1.18.9", "dependencies": { "jquery": ">=1.7" }, diff --git a/bower.json b/bower.json index ad31c0d..e6f74f2 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "jquery-autosize", "description": "Automatically adjust textarea height based on user input.", - "version": "1.18.8", + "version": "1.18.9", "dependencies": { "jquery": ">=1.7" }, diff --git a/jquery.autosize.js b/jquery.autosize.js index 634317a..27b341b 100644 --- a/jquery.autosize.js +++ b/jquery.autosize.js @@ -1,5 +1,5 @@ /*! - Autosize v1.18.8 - 2014-05-20 + Autosize v1.18.9 - 2014-05-27 Automatically adjust textarea height based on user input. (c) 2014 Jack Moore - http://www.jacklmoore.com/autosize license: http://www.opensource.org/licenses/mit-license.php @@ -116,10 +116,10 @@ width -= parseInt(style[val],10); }); } else { - width = Math.max($ta.width(), 0); + width = $ta.width(); } - mirror.style.width = width + 'px'; + mirror.style.width = Math.max(width,0) + 'px'; } function initMirror() { diff --git a/jquery.autosize.min.js b/jquery.autosize.min.js index f9378cb..958b43b 100644 --- a/jquery.autosize.min.js +++ b/jquery.autosize.min.js @@ -1,7 +1,7 @@ /*! - Autosize v1.18.8 - 2014-05-20 + Autosize v1.18.9 - 2014-05-27 Automatically adjust textarea height based on user input. (c) 2014 Jack Moore - http://www.jacklmoore.com/autosize license: http://www.opensource.org/licenses/mit-license.php */ -(function(e){var t,o={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeDelay:10,placeholder:!0},i='