Bug 997227 - Entering and exiting tabview makes items in tabs toolbar collide with fullscreen button. r=Gijs, MattN.

This commit is contained in:
Mike Conley 2014-04-16 19:48:01 -04:00
Родитель 05628e6560
Коммит c8e0e58744
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -4584,6 +4584,10 @@ var TabsInTitlebar = {
document.documentElement.removeAttribute("tabsintitlebar");
updateTitlebarDisplay();
#ifdef XP_MACOSX
let secondaryButtonsWidth = rect($("titlebar-secondary-buttonbox")).width;
this._sizePlaceholder("fullscreen-button", secondaryButtonsWidth);
#endif
// Reset the margins and padding that might have been modified:
titlebarContent.style.marginTop = "";
titlebarContent.style.marginBottom = "";