witten
/
luminotes
Archived
1
0
Fork 0

Make invisible iframe have zero height as well, so it doesn't add blank space at the bottom of the page.

This commit is contained in:
Dan Helfman 2009-01-23 14:49:03 -08:00
parent bdfc5d3740
commit 4817f286bf
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,8 @@ function Shared_iframe() {
"src": MSIE6 && "/static/html/blank.html" || "about:blank", "src": MSIE6 && "/static/html/blank.html" || "about:blank",
"frameBorder": "0", "frameBorder": "0",
"scrolling": "no", "scrolling": "no",
"class": "note_frame invisible" "class": "note_frame invisible",
"height": "0"
} }
); );
@ -1022,6 +1023,7 @@ Editor.prototype.release_iframe = function () {
if ( this.div ) if ( this.div )
removeElementClass( this.div, "invisible" ); removeElementClass( this.div, "invisible" );
addElementClass( this.iframe, "invisible" ); addElementClass( this.iframe, "invisible" );
setElementDimensions( this.iframe, { "h": 0 } );
this.iframe = null; this.iframe = null;
} }