Backed out changeset d36b2edb017b (bug 1014523) for OSX bc1 bustage

This commit is contained in:
Wes Kocher 2014-05-23 10:06:19 -07:00
Родитель c9bda85013
Коммит 2c816c1d1b
3 изменённых файлов: 8 добавлений и 4 удалений

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

@ -4428,8 +4428,7 @@ var TabsInTitlebar = {
// Get the full height of the tabs toolbar:
let tabsToolbar = $("TabsToolbar");
let tabsStyles = window.getComputedStyle(tabsToolbar);
let fullTabsHeight = rect(tabsToolbar).height + verticalMargins(tabsStyles);
let fullTabsHeight = rect(tabsToolbar).height;
// Buttons first:
let captionButtonsBoxWidth = rect($("titlebar-buttonbox-container")).width;
@ -4438,11 +4437,15 @@ var TabsInTitlebar = {
// No need to look up the menubar stuff on OS X:
let menuHeight = 0;
let fullMenuHeight = 0;
// Instead, look up the titlebar padding:
let titlebarPadding = parseInt(window.getComputedStyle(titlebar).paddingTop, 10);
#else
// Otherwise, get the height and margins separately for the menubar
let menuHeight = rect(menubar).height;
let menuStyles = window.getComputedStyle(menubar);
let fullMenuHeight = verticalMargins(menuStyles) + menuHeight;
let tabsStyles = window.getComputedStyle(tabsToolbar);
fullTabsHeight += verticalMargins(tabsStyles);
#endif
// And get the height of what's in the titlebar:
@ -4485,6 +4488,7 @@ var TabsInTitlebar = {
// We need to increase the titlebar content's outer height (ie including margins)
// to match the tab and menu height:
let extraMargin = tabAndMenuHeight - titlebarContentHeight;
// On non-OSX, we can just use bottom margin:
#ifndef XP_MACOSX
titlebarContent.style.marginBottom = extraMargin + "px";
#endif

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

@ -52,6 +52,7 @@
}
#TabsToolbar:not([collapsed="true"]) + #nav-bar {
margin-top: -@tabToolbarNavbarOverlap@; /* Move up into the TabsToolbar */
/* Position the toolbar above the bottom of background tabs */
position: relative;
z-index: 1;
@ -1767,7 +1768,6 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
min-height: 0;
padding: 0;
position: relative;
margin-bottom: -@tabToolbarNavbarOverlap@;
}
/*

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

@ -110,6 +110,7 @@ toolbarseparator {
}
#TabsToolbar:not([collapsed="true"]) + #nav-bar {
margin-top: -@tabToolbarNavbarOverlap@; /* Move up into the TabsToolbar */
/* Position the toolbar above the bottom of background tabs */
position: relative;
z-index: 1;
@ -2796,7 +2797,6 @@ toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
position: relative;
-moz-appearance: none;
background-repeat: repeat-x;
margin-bottom: -@tabToolbarNavbarOverlap@;
}
#TabsToolbar:not(:-moz-lwtheme) {