diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-10 11:24:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-10 11:24:16 +0000 |
commit | 704737132f674110bd66cb064876d4af889b42ce (patch) | |
tree | 5fed5b1b29829c5107f20a3533a1c794288056c1 /misc | |
parent | 4a7be0f2f0f1de9025f26088ba3f085c3f1f926c (diff) | |
download | brdo-704737132f674110bd66cb064876d4af889b42ce.tar.gz brdo-704737132f674110bd66cb064876d4af889b42ce.tar.bz2 |
- Patch #101305 by bjaspan: work around IE textarea bug.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/textarea.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/textarea.js b/misc/textarea.js index 34217c7e5..8e523235e 100644 --- a/misc/textarea.js +++ b/misc/textarea.js @@ -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 |