From 3070634aabd0eb15da4f0bea748fd6192e07e28d Mon Sep 17 00:00:00 2001 From: Nicholas Small Date: Wed, 28 Jul 2010 18:06:08 -0400 Subject: [PATCH] Make -center on a bridge window into a no-op. --- AppKit/CPWindow/CPWindow.j | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index 75650792f..9e7eac0dc 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1362,6 +1362,9 @@ CPTexturedBackgroundWindowMask */ - (void)center { + if (_isFullPlatformWindow) + return; + var size = [self frame].size, containerSize = [CPPlatform isBrowser] ? [_platformWindow contentBounds].size : [[self screen] visibleFrame].size;