# HG changeset patch # User Edho Arief # Date 1349340039 -25200 # Node ID 5635c91f4bfdfba28250f282d68108d20b892094 # Parent 8f6a0204b2a76c3c5e6ec709ef1b960730dd33e8 Only allow resize input box vertically. diff -r 8f6a0204b2a7 -r 5635c91f4bfd app/assets/javascripts/pastes.js --- a/app/assets/javascripts/pastes.js Thu Oct 04 11:01:38 2012 +0700 +++ b/app/assets/javascripts/pastes.js Thu Oct 04 15:40:39 2012 +0700 @@ -7,8 +7,5 @@ $('#paste_paste').focus(); return false; }); - $(window).resize(function() { - $('#paste_paste').css('width', '100%'); - }) $('#paste_paste').focus(); }) diff -r 8f6a0204b2a7 -r 5635c91f4bfd app/assets/stylesheets/pastes.css --- a/app/assets/stylesheets/pastes.css Thu Oct 04 11:01:38 2012 +0700 +++ b/app/assets/stylesheets/pastes.css Thu Oct 04 15:40:39 2012 +0700 @@ -1,3 +1,4 @@ textarea#paste_paste { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; + resize: vertical; }