Skip to content

Commit

Permalink
Minor change to fix potential IE8 negative width bug. Fixes jackmoore…
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmoore committed May 27, 2014
1 parent 2fe25af commit ae2edcb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion autosize.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
6 changes: 3 additions & 3 deletions jquery.autosize.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions jquery.autosize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {},
"keywords": [
"form",
Expand Down
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Small jQuery plugin to allow dynamic resizing of textarea height, so that it gro

## Changelog

### v1.18.9 - 2014/5/27
* Minor change to fix potential IE8 negative width bug. Fixes #157 Fixes #158

### v1.18.8 - 2014/5/20
* Minor change to logic for applying the CSS resize property. Fixes #156

Expand Down

0 comments on commit ae2edcb

Please sign in to comment.