commit 5470d4bf898e5651eb8c8764dbe3570289852200
parent e29c87c77bf25ba897b694779fe35a76f26030a0
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 11 Feb 2012 18:23:43 -0500
Fix scrolling in basicViewer
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js
@@ -40,4 +40,11 @@ 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() {
+ window.setTimeout(function() {
+ document.getElementById("my-browser").style.overflow = "auto";
+ }, 0);
}, false);
\ No newline at end of file