mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 22:10:56 +00:00
setFrame: to new constrained rect
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11075 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9f6b0ac230
commit
cb4ab6e766
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-10-02 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSWindow.m (-orderWindow:relativeTo:): setFrame: to the
|
||||||
|
new constrained rect (if changed).
|
||||||
|
|
||||||
2001-09-28 Fred Kiefer <FredKiefer@gmx.de>
|
2001-09-28 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Header/gnustep/gui/NSPopupButton.h
|
* Header/gnustep/gui/NSPopupButton.h
|
||||||
|
|
|
@ -1139,13 +1139,15 @@ static NSNotificationCenter *nc = nil;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_frame = [self constrainFrameRect:_frame toScreen:[self screen]];
|
NSRect nframe = [self constrainFrameRect:_frame toScreen:[self screen]];
|
||||||
// create deferred window
|
// create deferred window
|
||||||
if (_windowNum == 0)
|
if (_windowNum == 0)
|
||||||
{
|
{
|
||||||
[self _initBackendWindow: _frame];
|
[self _initBackendWindow: _frame];
|
||||||
display = YES;
|
display = YES;
|
||||||
}
|
}
|
||||||
|
else if (NSEqualRects(_frame, nframe) == NO)
|
||||||
|
[self setFrame: nframe display: NO];
|
||||||
}
|
}
|
||||||
DPSorderwindow(context, place, otherWin, _windowNum);
|
DPSorderwindow(context, place, otherWin, _windowNum);
|
||||||
if (display)
|
if (display)
|
||||||
|
|
Loading…
Reference in a new issue