Use a single load event for scrollbar hack

This commit is contained in:
Simon Kornblith 2012-02-11 18:30:24 -05:00
parent 5470d4bf89
commit 146d281bfb

View File

@ -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);