Bug 581813 - Firefox with Tab Candy caused the Title and Tab Bars or the Menu and Tab Bars to appear black in colour

Push the TabView iframe down behind the tabbrowser when hiding TabView and restore the max height on show. This has slight issues in that it squishes the iframe contents as well as flashes black as we animate. Followup in bug 586679.
This commit is contained in:
Edward Lee 2010-08-12 09:38:21 -07:00
parent fb481caa08
commit d78c248762

View File

@ -302,6 +302,10 @@ var UIManager = {
});
this._reorderTabItemsOnShow = [];
#ifdef XP_WIN
// Restore the full height when showing TabView
gTabViewFrame.style.marginTop = 0;
#endif
gTabViewDeck.selectedIndex = 1;
gTabViewFrame.contentWindow.focus();
@ -354,6 +358,12 @@ var UIManager = {
});
this._reorderTabsOnHide = [];
#ifdef XP_WIN
// Push the top of TabView frame to behind the tabbrowser, so glass can show
// XXX bug 586679: avoid shrinking the iframe and squishing iframe contents
// as well as avoiding the flash of black as we animate out
gTabViewFrame.style.marginTop = gBrowser.boxObject.y + "px";
#endif
gTabViewDeck.selectedIndex = 0;
gBrowser.contentWindow.focus();