Small correction of last change.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39129 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2015-11-03 08:15:02 +00:00
parent b76a7b9593
commit 810192f7e5

View file

@ -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;