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:
joshmoz%gmail.com 2005-08-11 06:16:12 +00:00
Родитель da2c46e0f4
Коммит c4f0835491
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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);