From e15cbfca334d7c3a3f7d862c6eb036fd4e99a19e Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Sun, 20 Dec 2009 17:41:11 -0600 Subject: [PATCH] fix bug in CPPlatformWindow where the visible frame for the platform window would offset itself for the menu bar height, even though no menu bar would be displayed because it's not the primaryPlatformWindow --- AppKit/Platform/CPPlatformWindow.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/Platform/CPPlatformWindow.j b/AppKit/Platform/CPPlatformWindow.j index 7c665e9bf..fa1917281 100644 --- a/AppKit/Platform/CPPlatformWindow.j +++ b/AppKit/Platform/CPPlatformWindow.j @@ -104,7 +104,7 @@ var PrimaryPlatformWindow = NULL; frame.origin = CGPointMakeZero(); - if ([CPMenu menuBarVisible]) + if ([CPMenu menuBarVisible] && [CPPlatformWindow primaryPlatformWindow] === self) { var menuBarHeight = [[CPApp mainMenu] menuBarHeight];