Author: fredkiefer
Date: Fri Jul 4 20:10:38 2014
New Revision: 37982
URL: http://svn.gna.org/viewcvs/gnustep?rev=37982&view=rev
Log:
* Source/GSWindowDecorationView.m (-changeWindowHeight:): Add
workaround to adjust window min and max size when the height changes.
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Source/GSWindowDecorationView.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=37982&r1=37981&r2=37982&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Fri Jul 4 20:10:38 2014
@@ -1,3 +1,8 @@
+2014-07-04 Fred Kiefer <[email protected]>
+
+ * Source/GSWindowDecorationView.m (-changeWindowHeight:): Add
+ workaround to adjust window min and max size when the height changes.
+
2014-06-17 Fred Kiefer <[email protected]>
* TextConverters/RTF/rtfGrammar.y,
Modified: libs/gui/trunk/Source/GSWindowDecorationView.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/GSWindowDecorationView.m?rev=37982&r1=37981&r2=37982&view=diff
==============================================================================
--- libs/gui/trunk/Source/GSWindowDecorationView.m (original)
+++ libs/gui/trunk/Source/GSWindowDecorationView.m Fri Jul 4 20:10:38 2014
@@ -355,6 +355,20 @@
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
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs