# HG changeset patch # User Edho Arief # Date 1352687755 -25200 # Node ID e8a0e82213cd2501698c745897385cf8acc8bda7 # Parent a2d87bcd39fbd458479efa168f7b2c4cab4ef1f6 Updated autosize from vendor, separated box size hack to its own function. diff -r a2d87bcd39fb -r e8a0e82213cd app/assets/javascripts/autosize-box-fix.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/assets/javascripts/autosize-box-fix.js Mon Nov 12 09:35:55 2012 +0700 @@ -0,0 +1,7 @@ +(function($) { + $.autosize_box_fix = function(elem) { + elem.css('box-sizing', ''); + elem.css('-webkit-box-sizing', ''); + elem.css('-moz-box-sizing', ''); + }; +}) (jQuery); diff -r a2d87bcd39fb -r e8a0e82213cd app/assets/javascripts/pastes.js --- a/app/assets/javascripts/pastes.js Mon Nov 12 09:12:33 2012 +0700 +++ b/app/assets/javascripts/pastes.js Mon Nov 12 09:35:55 2012 +0700 @@ -8,5 +8,6 @@ }); $(document).ready(function() { $('#paste_paste').autosize({ className: 'mirrored_text row-fluid', append: "\n"}); + $.autosize_box_fix($('.mirrored_text')); $('#paste_paste').focus(); }) diff -r a2d87bcd39fb -r e8a0e82213cd lib/assets/javascripts/jquery.autosize.js --- 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 = '