- Patch #101305 by bjaspan: work around IE textarea bug.

6.x
Dries Buytaert 2007-04-10 11:24:16 +00:00
parent 4a7be0f2f0
commit 704737132f
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ Drupal.textareaAttach = function() {
$('textarea.resizable:not(.processed)').each(function() {
var textarea = $(this).addClass('processed'), staticOffset = null;
$(this).wrap('<div class="resizable-textarea"></div>')
// When wrapping the text area, work around an IE margin bug. See:
// http://jaspan.com/ie-inherited-margin-bug-form-elements-and-haslayout
$(this).wrap('<div class="resizable-textarea"><span></span></div>')
.parent().append($('<div class="grippie"></div>').mousedown(startDrag));
// Inherit visibility