mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +00:00
* 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:
parent
c973c719b5
commit
80cac045e1
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-07-04 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSWindowDecorationView.m (-changeWindowHeight:): Add
|
||||
workaround to adjust window min and max size when the height changes.
|
||||
|
||||
2014-06-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* TextConverters/RTF/rtfGrammar.y,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue