From c4f08354918e2ec871070602fbccbe77a0301b53 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Thu, 11 Aug 2005 06:16:12 +0000 Subject: [PATCH] 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 --- browser/base/content/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 7e53d402796..2b17c9e0709 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -642,6 +642,10 @@ function BrowserStartup() // 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) defaultHeight -= 28; +#endif +#ifdef XP_MACOSX + // account for the Mac OS X title bar + defaultHeight -= 22; #endif } document.documentElement.setAttribute("width", defaultWidth);