mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
b76a7b9593
commit
810192f7e5
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue