mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 04:31:00 +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
e4b9c44b1a
commit
3e8bcc22f4
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>
|
2014-06-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* TextConverters/RTF/rtfGrammar.y,
|
* TextConverters/RTF/rtfGrammar.y,
|
||||||
|
|
|
@ -355,6 +355,20 @@ static inline NSRect RectWithSizeScaledByFactor(NSRect aRect, CGFloat factor)
|
||||||
NSRect windowFrame;
|
NSRect windowFrame;
|
||||||
NSRect windowContentFrame;
|
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;
|
contentRect.size.height += difference;
|
||||||
windowFrame = [object_getClass(self)
|
windowFrame = [object_getClass(self)
|
||||||
frameRectForContentRect: contentRect
|
frameRectForContentRect: contentRect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue