From d62b885e4607bdb193dae70c6c18860c4e8d31f7 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 30 Oct 2008 14:57:27 -0700 Subject: [PATCH] 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. --- static/js/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index 94c6ce7..5686361 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -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 = "";