From 7a95185b34f05a91f2c60137607291a564772942 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 11 Feb 2012 18:23:43 -0500 Subject: [PATCH 1/2] Fix scrolling in basicViewer --- chrome/content/zotero/standalone/basicViewer.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js index dc2cdbccbe..174e45c859 100644 --- 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 From 959905a061bc83e6af72fddaacea1b67e9b7620e Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 11 Feb 2012 18:30:24 -0500 Subject: [PATCH 2/2] Use a single load event for scrollbar hack --- chrome/content/zotero/standalone/basicViewer.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js index 174e45c859..76fb271d21 100644 --- 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);