Bug 714186 - Add padding to top of windows when fullscreen on Lion. r=fryn ui-r=shorlander

This commit is contained in:
Paul O’Shannessy 2012-07-10 21:08:06 -07:00
Родитель 26993a50be
Коммит c4e93f1c43
2 изменённых файлов: 20 добавлений и 1 удалений

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

@ -27,8 +27,13 @@ var FullScreen = {
// If we're leaving fullscreen, then we'll go through the exit code below to
// make sure toolbars are made visible in the case of DOM fullscreen.
if (enterFS && this.useLionFullScreen) {
if (document.mozFullScreen)
if (document.mozFullScreen) {
this.showXULChrome("toolbar", false);
}
else {
gNavToolbox.setAttribute("inFullscreen", true);
document.documentElement.setAttribute("inFullscreen", true);
}
return;
}

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

@ -2737,6 +2737,20 @@ panel[dimmed="true"] {
position: relative;
}
/* Lion Fullscreen window styling */
@media (-moz-mac-lion-theme) {
#navigator-toolbox[inFullscreen][tabsontop="true"]:not(:-moz-lwtheme)::before {
height: 36px;
}
#main-window[inFullscreen]:-moz-lwtheme {
/* This additional padding matches the change in height in the pseudo-element
* above. The rules combined force the top 22px of the background image to
* be hidden, so there image doesn't jump around with the loss of the titlebar */
padding-top: 11px;
background-position: right -11px;
}
}
#devtools-sidebar-box {
background-color: -moz-Field;
}