Skip to content

Commit

Permalink
Fixed an issue with autosize working poorly if the mirror element has…
Browse files Browse the repository at this point in the history
… a transition applied to it's width. (Fixes jackmoore#78)
  • Loading branch information
Jack Moore committed Jun 7, 2013
1 parent 257b240 commit a03949f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion autosize.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"textarea",
"ui"
],
"version": "1.16.13",
"version": "1.16.14",
"author": {
"name": "Jack Moore",
"url": "http://www.jacklmoore.com",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-autosize",
"version": "1.16.13",
"version": "1.16.14",
"main": "./jquery.autosize.js",
"dependencies": {
"jquery": ">=1.7"
Expand Down
6 changes: 3 additions & 3 deletions jquery.autosize-min.js

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

15 changes: 8 additions & 7 deletions jquery.autosize.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/*!
jQuery Autosize v1.16.13
(c) 2013 Jack Moore - jacklmoore.com
updated: 2013-06-04
license: http://www.opensource.org/licenses/mit-license.php
*/
/*!
jQuery Autosize v1.16.14
(c) 2013 Jack Moore - jacklmoore.com
updated: 2013-06-06
license: http://www.opensource.org/licenses/mit-license.php
*/


(function ($) {
var
Expand All @@ -17,7 +18,7 @@
lineHeight = 'lineHeight',

// border:0 is unnecessary, but avoids a bug in FireFox on OSX
copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden;"/>',
copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',

// line-height is conditionally included because IE7/IE8/old Opera do not return the correct value.
copyStyle = [
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.16.14 - 2013/6/6
* Fixed an issue with autosize working poorly if the mirror element has a transition applied to it's width.

### v1.16.13 - 2013/6/4
* Fixed a Chrome cursor position issue introduced with the reflow workaround added in 1.16.10.

Expand Down

0 comments on commit a03949f

Please sign in to comment.