Bug fix for when you load a notebook and it has several notes, the page scrolls to part-way down the page after all the iframes load.
This commit is contained in:
parent
22c49a9590
commit
d62b885e46
|
@ -32,7 +32,7 @@ function Editor( id, notebook_id, note_text, deleted_from_id, revision, read_wri
|
|||
"name": iframe_id,
|
||||
"class": "note_frame",
|
||||
"onresize": function () { setTimeout( function () { self.resize() }, 50 ); },
|
||||
"onload": function () { setTimeout( function () { self.resize() }, 250 ); }
|
||||
"onload": function () { setTimeout( function () { self.resize(); if ( !highlight ) scroll( 0, 0 ); }, 250 ); }
|
||||
} );
|
||||
this.iframe.editor = this;
|
||||
this.title = "";
|
||||
|
|
Reference in New Issue