Set textarea in sidebar editor to fixed height of 360px due to webkit bug (thanks Neal)
authorDan
Sun, 22 Mar 2009 12:10:25 -0400
changeset 886 041c86ff16d5
parent 885 a86a69394a95
child 887 cb96d038baff
Set textarea in sidebar editor to fixed height of 360px due to webkit bug (thanks Neal)
includes/clientside/sbedit.js
--- a/includes/clientside/sbedit.js	Sun Mar 22 00:55:06 2009 -0400
+++ b/includes/clientside/sbedit.js	Sun Mar 22 12:10:25 2009 -0400
@@ -56,7 +56,7 @@
     .animate({ width: 500, height: 400, top: top, left: (getWidth() / 2) - 250 }, 400, function()
       {
         var whitey = whiteOutElement(this);
-        $(this).append('<textarea style="width: 100%; height: 90%;"></textarea>');
+        $(this).append('<textarea style="width: 100%; height: 360px;" rows="20" cols="80"></textarea>');
         $(this).append('<p style="text-align: center;"><a href="#" onclick="sbedit_edit_save(this); return false;">' + $lang.get('etc_save_changes') + '</a> | <a href="#" onclick="sbedit_edit_cancel(this); return false;">' + $lang.get('etc_cancel') + '</a></p>');
         $.get(makeUrlNS('Special', 'EditSidebar', 'action=getsource&noheaders&id=' + this.item_id), {}, function(response, statustext)
           {