From 4817f286bf86b47da4d0d86982cd44dec0f58d7b Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 23 Jan 2009 14:49:03 -0800 Subject: [PATCH] Make invisible iframe have zero height as well, so it doesn't add blank space at the bottom of the page. --- static/js/Editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index 23a92db..51f2b20 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -15,7 +15,8 @@ function Shared_iframe() { "src": MSIE6 && "/static/html/blank.html" || "about:blank", "frameBorder": "0", "scrolling": "no", - "class": "note_frame invisible" + "class": "note_frame invisible", + "height": "0" } ); @@ -1022,6 +1023,7 @@ Editor.prototype.release_iframe = function () { if ( this.div ) removeElementClass( this.div, "invisible" ); addElementClass( this.iframe, "invisible" ); + setElementDimensions( this.iframe, { "h": 0 } ); this.iframe = null; }