Mercurial > zeropaste
diff lib/assets/javascripts/jquery.autosize.js @ 97:e8a0e82213cd
Updated autosize from vendor, separated box size hack to its own function.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 12 Nov 2012 09:35:55 +0700 |
parents | 50b8738d6428 |
children |
line wrap: on
line diff
--- a/lib/assets/javascripts/jquery.autosize.js Mon Nov 12 09:12:33 2012 +0700 +++ b/lib/assets/javascripts/jquery.autosize.js Mon Nov 12 09:35:55 2012 +0700 @@ -12,7 +12,7 @@ hidden = 'hidden', borderBox = 'border-box', lineHeight = 'lineHeight', - copy = '<textarea tabindex="-1" style="position:absolute; top:-9999px; left:-9999px; right:auto; bottom:auto; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden;"/>', + copy = '<textarea tabindex="-1" style="position:absolute; top:-9999px; left:-9999px; right:auto; bottom:auto; -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;"/>', // line-height is omitted because IE7/IE8 doesn't return the correct value. copyStyle = [ 'fontFamily', @@ -177,4 +177,4 @@ }; } -}(jQuery)); +}(window.jQuery || window.Zepto)); \ No newline at end of file