changeset 76:5635c91f4bfd

Only allow resize input box vertically.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 15:40:39 +0700
parents 8f6a0204b2a7
children 2fb80ca710e0
files app/assets/javascripts/pastes.js app/assets/stylesheets/pastes.css
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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();
 })
--- 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;
 }