Bug 430687 - Maintain the tab bar's overflow state and scroll position in full-screen mode. r=mano

--HG--
extra : rebase_source : a43304f6df1b88d7846bb27e0ba243f90796973e
This commit is contained in:
Dão Gottwald 2010-07-01 08:35:14 +02:00
parent e758907bb2
commit 18de50e7fe

View File

@ -3722,7 +3722,10 @@ var FullScreen =
this._collapseCallback, false);
}
gNavToolbox.collapsed = !aShow;
// Hiding/collapsing the toolbox interferes with the tab bar's scrollbox,
// so we just move it off-screen instead. See bug 430687.
gNavToolbox.style.marginTop = aShow ? "" : -gNavToolbox.clientHeight + "px";
document.getElementById("fullscr-toggler").collapsed = aShow;
this._isChromeCollapsed = !aShow;
if (gPrefService.getIntPref("browser.fullscreen.animateUp") == 2)