Skip to content

Commit

Permalink
Merge pull request jackmoore#103 from nickbaum/master
Browse files Browse the repository at this point in the history
Explicitly set the padding of the textarea to 0
  • Loading branch information
jackmoore committed Aug 27, 2013
2 parents d15d534 + 7146df0 commit 6864a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},

// 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; transition:none; -webkit-transition:none; -moz-transition:none;"/>',
copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 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.
typographyStyles = [
Expand Down

0 comments on commit 6864a0f

Please sign in to comment.