Bug 1145567 : display toolbar only after Domcontentloaded is triggered -r=margaret.

This commit is contained in:
vivek 2015-04-13 13:37:37 -07:00
parent a2d99d6e26
commit c48111aec2
2 changed files with 7 additions and 2 deletions

View File

@ -299,6 +299,7 @@ body {
list-style: none;
background-color: #EBEBF0;
border-top: 1px solid #D7D9DB;
display: none;
}
.toolbar[visible] {

View File

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