Author: fredkiefer
Date: Tue Nov  3 09:15:02 2015
New Revision: 39129

URL: http://svn.gna.org/viewcvs/gnustep?rev=39129&view=rev
Log:
Small correction of last change.

Modified:
    libs/gui/trunk/Source/NSWindow.m

Modified: libs/gui/trunk/Source/NSWindow.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSWindow.m?rev=39129&r1=39128&r2=39129&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSWindow.m    (original)
+++ libs/gui/trunk/Source/NSWindow.m    Tue Nov  3 09:15:02 2015
@@ -2142,6 +2142,11 @@
               frameRect.size.height = _minimumSize.height;
             }
         }
+      else
+        {
+          /* Move top edge of the window to the screen limit */
+          frameRect.origin.y -= NSMaxY(frameRect) - NSMaxY(screenRect);
+        }
     }
 
   if (NSWidth(frameRect) < NSWidth(screenRect))
@@ -2179,6 +2184,11 @@
               frameRect.origin.x = NSMaxX(screenRect) - _minimumSize.width;
               frameRect.size.width = _minimumSize.width;
             }
+        }
+      else
+        {
+          /* Move right edge of the window to the screen limit */
+          frameRect.origin.x -= NSMaxX(frameRect) - NSMaxX(screenRect);
         }
     }
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to