From 965bf3a195beea8def1b15d22cf4e8946f39ecfd Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Tue, 3 Nov 2015 08:15:02 +0000 Subject: [PATCH] Small correction of last change. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39129 72102866-910b-0410-8b05-ffd578937521 --- Source/NSWindow.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/NSWindow.m b/Source/NSWindow.m index d51f8b16d..6e43859a4 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -2142,6 +2142,11 @@ titleWithRepresentedFilename(NSString *representedFilename) 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)) @@ -2180,6 +2185,11 @@ titleWithRepresentedFilename(NSString *representedFilename) frameRect.size.width = _minimumSize.width; } } + else + { + /* Move right edge of the window to the screen limit */ + frameRect.origin.x -= NSMaxX(frameRect) - NSMaxX(screenRect); + } } return frameRect;