From 08950c2ab73b0b001d36939f4075cf0018f006ea Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 29 Nov 2007 20:32:41 +0000 Subject: [PATCH] Resizing onload as well since some browsers (e.g. Safari) don't fire onresize on iframes. --- static/js/Editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index 2d29719..11a6f73 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -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 = "";