# HG changeset patch # User Edho Arief # Date 1349293061 -25200 # Node ID 6a9e0c09bbd83200455b5a37870c627ae3efce5a # Parent bc088ddb470f00478c26fa8465cefbdd4d26cfc4 Ensure input box's width is always 100%. diff -r bc088ddb470f -r 6a9e0c09bbd8 app/assets/javascripts/pastes.js --- a/app/assets/javascripts/pastes.js Thu Oct 04 02:13:46 2012 +0700 +++ b/app/assets/javascripts/pastes.js Thu Oct 04 02:37:41 2012 +0700 @@ -7,4 +7,7 @@ $('#paste_paste').focus(); return false; }); + $(window).resize(function() { + $('#paste_paste').css('width', '100%'); + }) })