Permalink
Browse files

wiki: fix for IE6 bug with HTMLArea, where the text area is not drawn

IE6 measures a page element and - sometimes - it does this before the
element is drawn, so the dimensions it finds are zero. This update sets
sensible minimum for the width.

Author:  Donal McMullan <donal@catalyst.net.nz>
  • Loading branch information...
martinlanghoff
martinlanghoff committed Jul 6, 2006
1 parent 904bd82 commit 05a289bf1fb86a5634e7c564a9ccdcf9e5b04341
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/editor/htmlarea/htmlarea.php
@@ -771,7 +771,7 @@ function(event) {
var height = (this.config.height == "auto" ? (this._ta_size.h) : this.config.height);
height = parseInt(height);
var width = (this.config.width == "auto" ? (this._toolbar.offsetWidth) : this.config.width);
- width = parseInt(width);
+ width = Math.max(parseInt(width), 588);
if (!HTMLArea.is_ie) {
height -= 2;

0 comments on commit 05a289b

Please sign in to comment.