Mercurial > zeropaste
comparison 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 |
comparison
equal
deleted
inserted
replaced
96:a2d87bcd39fb | 97:e8a0e82213cd |
---|---|
10 callback: false | 10 callback: false |
11 }, | 11 }, |
12 hidden = 'hidden', | 12 hidden = 'hidden', |
13 borderBox = 'border-box', | 13 borderBox = 'border-box', |
14 lineHeight = 'lineHeight', | 14 lineHeight = 'lineHeight', |
15 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;"/>', | 15 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;"/>', |
16 // line-height is omitted because IE7/IE8 doesn't return the correct value. | 16 // line-height is omitted because IE7/IE8 doesn't return the correct value. |
17 copyStyle = [ | 17 copyStyle = [ |
18 'fontFamily', | 18 'fontFamily', |
19 'fontSize', | 19 'fontSize', |
20 'fontWeight', | 20 'fontWeight', |
175 $.fn.autosize = function (callback) { | 175 $.fn.autosize = function (callback) { |
176 return this; | 176 return this; |
177 }; | 177 }; |
178 } | 178 } |
179 | 179 |
180 }(jQuery)); | 180 }(window.jQuery || window.Zepto)); |