зеркало из https://github.com/mozilla/pjs.git
never make the initial browser window taller than the available screen height on Mac OS X. part 1 of 2. b=304089 r=mconnor a=mconnor
This commit is contained in:
Родитель
da2c46e0f4
Коммит
c4f0835491
|
@ -642,6 +642,10 @@ function BrowserStartup()
|
||||||
// On X, we're not currently able to account for the size of the window
|
// On X, we're not currently able to account for the size of the window
|
||||||
// border. Use 28px as a guess (titlebar + bottom window border)
|
// border. Use 28px as a guess (titlebar + bottom window border)
|
||||||
defaultHeight -= 28;
|
defaultHeight -= 28;
|
||||||
|
#endif
|
||||||
|
#ifdef XP_MACOSX
|
||||||
|
// account for the Mac OS X title bar
|
||||||
|
defaultHeight -= 22;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
document.documentElement.setAttribute("width", defaultWidth);
|
document.documentElement.setAttribute("width", defaultWidth);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче