mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +00:00
Change -[NSWindow constrainFrameRect:toScreen:] to correct x origin if needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38046 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7b08af4087
commit
cb6f3d721e
2 changed files with 17 additions and 0 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2014-08-18 12:14-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSWindow.m: Change code in
|
||||||
|
-[NSWindow constrainFrameRect:toScreen:] to contstrain
|
||||||
|
the X origin coordinate as well so that the window will appear
|
||||||
|
inside the screen if the saved coordinates are outside of the current
|
||||||
|
screen's range. This can occur of the .gorm file was made on a machine
|
||||||
|
with a larger screen geometry than the machine it is currently running
|
||||||
|
on.
|
||||||
|
|
||||||
2014-07-25 Gregory John Casamento <greg.casamento@gmail.com>
|
2014-07-25 Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Source/NSWindow.m: Remove code in (initWithContentRect:..) which
|
* Source/NSWindow.m: Remove code in (initWithContentRect:..) which
|
||||||
|
|
|
@ -2105,6 +2105,13 @@ titleWithRepresentedFilename(NSString *representedFilename)
|
||||||
{
|
{
|
||||||
frameRect.origin.y -= difference;
|
frameRect.origin.y -= difference;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Adjust X origin, if needed */
|
||||||
|
difference = NSMaxX (frameRect) - NSMaxX (screenRect);
|
||||||
|
if (difference > 0)
|
||||||
|
{
|
||||||
|
frameRect.origin.x -= difference;
|
||||||
|
}
|
||||||
|
|
||||||
/* If the window is resizable, resize it (if needed) so that the
|
/* If the window is resizable, resize it (if needed) so that the
|
||||||
bottom edge is on the screen or can be on the screen when the user moves
|
bottom edge is on the screen or can be on the screen when the user moves
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue