Use a single load event for scrollbar hack
This commit is contained in:
parent
7a95185b34
commit
959905a061
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue