* Source/GSWindowDecorationView.m (-changeWindowHeight:): Add

workaround to adjust window min and max size when the height changes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37982 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2014-07-04 18:10:38 +00:00
parent e4b9c44b1a
commit 3e8bcc22f4
2 changed files with 19 additions and 0 deletions

View file

@ -355,6 +355,20 @@ static inline NSRect RectWithSizeScaledByFactor(NSRect aRect, CGFloat factor)
NSRect windowFrame;
NSRect windowContentFrame;
// FIXME: This is needed as long as NSWindow uses fraem limits not content frame limits
NSSize aSize = [window minSize];
if (!NSEqualSizes(aSize, NSZeroSize))
{
aSize.height += difference;
[window setMinSize: aSize];
}
aSize = [window maxSize];
if (!NSEqualSizes(aSize, NSZeroSize))
{
aSize.height += difference;
[window setMaxSize: aSize];
}
contentRect.size.height += difference;
windowFrame = [object_getClass(self)
frameRectForContentRect: contentRect