diff --git a/autosize.jquery.json b/autosize.jquery.json
index e597869..c91cfa2 100644
--- a/autosize.jquery.json
+++ b/autosize.jquery.json
@@ -7,7 +7,7 @@
"textarea",
"ui"
],
- "version": "1.16.10",
+ "version": "1.16.11",
"author": {
"name": "Jack Moore",
"url": "http://www.jacklmoore.com",
diff --git a/component.json b/component.json
index 34e2be3..e77e4e9 100644
--- a/component.json
+++ b/component.json
@@ -1,6 +1,6 @@
{
"name": "jquery-autosize",
- "version": "1.16.10",
+ "version": "1.16.11",
"main": "./jquery.autosize.js",
"dependencies": {
"jquery": ">=1.7"
diff --git a/jquery.autosize-min.js b/jquery.autosize-min.js
index 17ebd31..b7b2da5 100644
--- a/jquery.autosize-min.js
+++ b/jquery.autosize-min.js
@@ -1,7 +1,7 @@
/*!
- jQuery Autosize v1.16.10
+ jQuery Autosize v1.16.11
(c) 2013 Jack Moore - jacklmoore.com
- updated: 2013-05-30
+ updated: 2013-05-31
license: http://www.opensource.org/licenses/mit-license.php
*/
-(function(e){var t,o={className:"autosizejs",append:"",callback:!1},n="hidden",i="border-box",s="lineHeight",a='',l=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],r="oninput",c="onpropertychange",h=e(a).data("autosize",!0)[0];h.style.lineHeight="99px","99px"===e(h).css(s)&&l.push(s),h.style.lineHeight="",e.fn.autosize=function(s){return s=e.extend({},o,s||{}),h.parentNode!==document.body&&e(document.body).append(h),this.each(function(){function o(){t=g,h.className=s.className,p=parseInt(x.css("maxHeight"),10),e.each(l,function(e,t){h.style[t]=x.css(t)});var o=g.value;g.value="",g.value=o}function a(){var e,i,a;t!==g&&o(),d||(d=!0,h.value=g.value+s.append,h.style.overflowY=g.style.overflowY,a=parseInt(g.style.height,10),h.style.width=Math.max(x.width(),0)+"px",h.scrollTop=0,h.scrollTop=9e4,e=h.scrollTop,p&&e>p?(e=p,i="scroll"):u>e&&(e=u),e+=f,g.style.overflowY=i||n,a!==e&&(g.style.height=e+"px",w&&s.callback.call(g,g)),setTimeout(function(){d=!1},1))}var u,p,d,b,g=this,x=e(g),f=0,w=e.isFunction(s.callback);x.data("autosize")||((x.css("box-sizing")===i||x.css("-moz-box-sizing")===i||x.css("-webkit-box-sizing")===i)&&(f=x.outerHeight()-x.height()),u=Math.max(parseInt(x.css("minHeight"),10)-f,x.height()),b="none"===x.css("resize")||"vertical"===x.css("resize")?"none":"horizontal",x.css({overflow:n,overflowY:n,wordWrap:"break-word",resize:b}).data("autosize",!0),c in g?r in g?g[r]=g.onkeyup=a:g[c]=a:g[r]=a,e(window).on("resize",function(){d=!1,a()}),x.on("autosize",function(){d=!1,a()}),a())})}})(window.jQuery||window.Zepto);
\ No newline at end of file
+(function(e){var t,o={className:"autosizejs",append:"",callback:!1},n="hidden",i="border-box",s="lineHeight",a='',l=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],r="oninput",c="onpropertychange",h=e(a).data("autosize",!0)[0];h.style.lineHeight="99px","99px"===e(h).css(s)&&l.push(s),h.style.lineHeight="",e.fn.autosize=function(s){return s=e.extend({},o,s||{}),h.parentNode!==document.body&&e(document.body).append(h),this.each(function(){function o(){t=g,h.className=s.className,p=parseInt(x.css("maxHeight"),10),e.each(l,function(e,t){h.style[t]=x.css(t)});var o=g.value;g.value="",g.value=o}function a(){var e,i,a;t!==g&&o(),d||(d=!0,h.value=g.value+s.append,h.style.overflowY=g.style.overflowY,a=parseInt(g.style.height,10),h.style.width=Math.max(x.width(),0)+"px",h.scrollTop=0,h.scrollTop=9e4,e=h.scrollTop,p&&e>p?(e=p,i="scroll"):u>e&&(e=u),e+=f,g.style.overflowY=i||n,a!==e&&(g.style.height=e+"px",w&&s.callback.call(g,g)),setTimeout(function(){d=!1},1))}var u,p,d,b,g=this,x=e(g),f=0,w=e.isFunction(s.callback);x.data("autosize")||((x.css("box-sizing")===i||x.css("-moz-box-sizing")===i||x.css("-webkit-box-sizing")===i)&&(f=x.outerHeight()-x.height()),u=Math.max(parseInt(x.css("minHeight"),10)-f||0,x.height()),b="none"===x.css("resize")||"vertical"===x.css("resize")?"none":"horizontal",x.css({overflow:n,overflowY:n,wordWrap:"break-word",resize:b}).data("autosize",!0),c in g?r in g?g[r]=g.onkeyup=a:g[c]=a:g[r]=a,e(window).on("resize",function(){d=!1,a()}),x.on("autosize",function(){d=!1,a()}),a())})}})(window.jQuery||window.Zepto);
\ No newline at end of file
diff --git a/jquery.autosize.js b/jquery.autosize.js
index f1d598e..bb72180 100644
--- a/jquery.autosize.js
+++ b/jquery.autosize.js
@@ -1,10 +1,9 @@
-/*!
- jQuery Autosize v1.16.10
- (c) 2013 Jack Moore - jacklmoore.com
- updated: 2013-05-30
- license: http://www.opensource.org/licenses/mit-license.php
-*/
-
+/*!
+ jQuery Autosize v1.16.11
+ (c) 2013 Jack Moore - jacklmoore.com
+ updated: 2013-05-31
+ license: http://www.opensource.org/licenses/mit-license.php
+*/
(function ($) {
var
@@ -74,6 +73,7 @@
boxOffset = $ta.outerHeight() - $ta.height();
}
+ // IE8 and lower return 'auto', which parses to NaN, if no min-height is set.
minHeight = Math.max(parseInt($ta.css('minHeight'), 10) - boxOffset || 0, $ta.height());
resize = ($ta.css('resize') === 'none' || $ta.css('resize') === 'vertical') ? 'none' : 'horizontal';
diff --git a/readme.md b/readme.md
index 56b7c74..124a244 100644
--- a/readme.md
+++ b/readme.md
@@ -4,6 +4,9 @@ Small jQuery plugin to allow dynamic resizing of textarea height, so that it gro
## Changelog
+### v1.16.11 - 2013/5/31
+* Fixed a default height issue in IE8.
+
### v1.16.10 - 2013/5/30
* Dropped scrollHeight for scrollTop. This fixed a height problem relating to padding. (Fixes #70)
* Re-added workaround to get Chrome to reflow text after hiding overflow.