From 6bec4064b5c3d8fa2c32ef37192017ce1041feab Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Mon, 5 Aug 2013 11:58:53 -0400 Subject: [PATCH] Fixed: window width was not constrained when platform window was resized. Previously window heights were constrained to the usable screen when the platform window (virtual screen) resized, but widths were not. The code was there to constrain the width, but it wasn't being used. This commit ensures the width constraining code is executed. --- AppKit/CPWindow/CPWindow.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index acfa7a6c4..6bab89979 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -3319,7 +3319,7 @@ var keyViewComparator = function(lhs, rhs, context) if (_autoresizingMask & CPWindowHeightSizable) newFrame.size.height += dY; - [self setFrame:newFrame]; + [self _setFrame:newFrame display:YES animate:NO constrainWidth:YES constrainHeight:YES]; } /*