Resizing onload as well since some browsers (e.g. Safari) don't fire onresize on iframes.
This commit is contained in:
parent
2e178f08be
commit
08950c2ab7
|
@ -22,7 +22,8 @@ function Editor( id, notebook_id, note_text, deleted_from_id, revision, read_wri
|
|||
"id": iframe_id,
|
||||
"name": iframe_id,
|
||||
"class": "note_frame",
|
||||
"onresize": function () { setTimeout( function () { self.resize() }, 50 ); }
|
||||
"onresize": function () { setTimeout( function () { self.resize() }, 50 ); },
|
||||
"onload": function () { setTimeout( function () { self.resize() }, 250 ); }
|
||||
} );
|
||||
this.iframe.editor = this;
|
||||
this.title = "";
|
||||
|
|
Reference in New Issue