mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 11:11:05 +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
cd9a83f6ed
commit
965bf3a195
1 changed files with 10 additions and 0 deletions
|
@ -2142,6 +2142,11 @@ titleWithRepresentedFilename(NSString *representedFilename)
|
||||||
frameRect.size.height = _minimumSize.height;
|
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))
|
if (NSWidth(frameRect) < NSWidth(screenRect))
|
||||||
|
@ -2180,6 +2185,11 @@ titleWithRepresentedFilename(NSString *representedFilename)
|
||||||
frameRect.size.width = _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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return frameRect;
|
return frameRect;
|
||||||
|
|
Loading…
Reference in a new issue