mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Use a single load event for scrollbar hack
This commit is contained in:
parent
5470d4bf89
commit
146d281bfb
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
Reference in a new issue