mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-04 11:54:59 +00:00
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:
1 parent
594ea6e5cb
commit
30441b109f
1 file changed
+2
-1
@@ -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],
|
||||
|
||||
Reference in new issue
Block a user