mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:50:46 +00:00
bugfix for window position constraint
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16546 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f480eb8094
commit
af960b9845
2 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
* Source/NSWindow.m: ([setFrameFromString:]) try to adjust sensibly
|
* Source/NSWindow.m: ([setFrameFromString:]) try to adjust sensibly
|
||||||
for changes to screen size.
|
for changes to screen size.
|
||||||
|
([constrainFrameRect:toScreen:]) bugfix for positioning when the
|
||||||
|
window origin is negative.
|
||||||
|
|
||||||
2003-04-26 Fred Kiefer <FredKiefer@gmx.de>
|
2003-04-26 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
|
|
@ -1625,10 +1625,14 @@ static NSNotificationCenter *nc = nil;
|
||||||
if (difference > 0)
|
if (difference > 0)
|
||||||
{
|
{
|
||||||
frameRect.size.height -= difference;
|
frameRect.size.height -= difference;
|
||||||
|
frameRect.origin.y += difference;
|
||||||
}
|
}
|
||||||
if (frameRect.size.height < _minimumSize.height)
|
/* Ensure that rewsizing doesn't makewindow smaller than minimum */
|
||||||
|
difference = _minimumSize.height - frameRect.size.height;
|
||||||
|
if (difference > 0)
|
||||||
{
|
{
|
||||||
frameRect.size.height = _minimumSize.height;
|
frameRect.size.height += difference;
|
||||||
|
frameRect.origin.y -= difference;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue