diff options
Diffstat (limited to 'misc/textarea.js')
-rw-r--r-- | misc/textarea.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/textarea.js b/misc/textarea.js index 32efb3305..dc9bce69c 100644 --- a/misc/textarea.js +++ b/misc/textarea.js @@ -1,11 +1,13 @@ if (isJsEnabled()) { addLoadEvent(function() { - // Attach to all textareas + // Attach to all visible textareas textareas = document.getElementsByTagName('textarea'); var textarea; for (var i = 0; textarea = textareas[i]; ++i) { if (hasClass(textarea, 'resizable')) { - new textArea(textarea); + if (typeof dimensions(textarea).width != 'undefined' && dimensions(textarea).width != 0) { + new textArea(textarea); + } } } }); |