Fix scrolling in basicViewer

This commit is contained in:
Simon Kornblith 2012-02-11 18:23:43 -05:00
parent e29c87c77b
commit 5470d4bf89

View file

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