mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1145567 : display toolbar only after Domcontentloaded is triggered -r=margaret.
This commit is contained in:
parent
a2d99d6e26
commit
c48111aec2
@ -299,6 +299,7 @@ body {
|
||||
list-style: none;
|
||||
background-color: #EBEBF0;
|
||||
border-top: 1px solid #D7D9DB;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toolbar[visible] {
|
||||
|
@ -270,8 +270,12 @@ AboutReader.prototype = {
|
||||
|
||||
// Display the toolbar when all its initial component states are known
|
||||
if (isInitialStateChange) {
|
||||
// Hacks! Delay showing the toolbar to avoid position: fixed; jankiness. See bug 975533.
|
||||
this._win.setTimeout(() => this._setToolbarVisibility(true), 500);
|
||||
// Toolbar display is updated here to avoid it appearing in the middle of the screen on page load. See bug 1145567.
|
||||
this._win.setTimeout(() => {
|
||||
this._toolbarElement.style.display = "block";
|
||||
// Delay showing the toolbar to have a nice slide from bottom animation.
|
||||
this._win.setTimeout(() => this._setToolbarVisibility(true), 200);
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user