Fixed: windows that were autoresized and not constrainable would obey the global CPWindowConstrainToScreen flag.

Previously, if a window had an autoresizingMask and was marked as not being constrained (for example _CPMenuBarWindow), and the CPWindowConstrainToScreen was set to NO, resizing the platform window would not autoresize the window.

This commit ensures that windows that autoresize but don't care about constraining will resize with the platform window no matter what.

Fixes #1981.
This commit is contained in:
Aparajita Fishman committed 2013-08-23 18:28:40 -04:00
1 parent 594ea6e5cb
commit 30441b109f
1 file changed
+2 -1
+2 -1
View File
@@ -3298,7 +3298,8 @@ var keyViewComparator = function(lhs, rhs, context)
if ([self isFullPlatformWindow])
return [self setFrame:[_platformWindow visibleFrame]];
if (!CPWindowConstrainToScreen || _autoresizingMask === CPWindowNotSizable)
// If this window is constrainable and we are globally ignoring constraining, ignore the platform resize
if ((_constrainsToUsableScreen && !CPWindowConstrainToScreen) || _autoresizingMask === CPWindowNotSizable)
return;
var frame = [_platformWindow contentBounds],