]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11242 - Setting the width back to it's 1.8 value. This makes it a bit too large...
authorscyrma <scyrma>
Thu, 28 Feb 2008 03:12:52 +0000 (03:12 +0000)
committerscyrma <scyrma>
Thu, 28 Feb 2008 03:12:52 +0000 (03:12 +0000)
from 1.9)

lib/editor/htmlarea/htmlarea.php

index 562014587925cf45c06ac83b03124fc2f4c30995..0711b23985e096ba2495fa367761d17d9dab557e 100644 (file)
@@ -805,7 +805,7 @@ HTMLArea.prototype.generate = function () {
     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 = Math.max(parseInt(width), 598);
+    width = Math.max(parseInt(width), 598);
 
     width = String(width);
     if (width.match(/^\d+$/)) { // is this a pure int? if so, let it be in px, and remove 2px