commit 146d281bfbb0ef02186b4a7acc3142a98df4ad69
parent 5470d4bf898e5651eb8c8764dbe3570289852200
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 11 Feb 2012 18:30:24 -0500
Use a single load event for scrollbar hack
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js
@@ -40,10 +40,8 @@ window.addEventListener("load", function() {
// show document
browser.loadURI.apply(browser, window.arguments);
-}, false);
-
-// XXX Why is this necessary to make the scroll bars appear?
-window.addEventListener("load", function() {
+
+ // XXX Why is this necessary to make the scroll bars appear?
window.setTimeout(function() {
document.getElementById("my-browser").style.overflow = "auto";
}, 0);