mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 03:40:47 +00:00
Ensure drawer is visible if parent window became visible since the drawer was opened
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31614 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fc3eab7928
commit
066f959ed0
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-11-16 Doug Simons <doug.simons@testplant.com>
|
||||||
|
|
||||||
|
* Source/NSDrawer.m:
|
||||||
|
Ensure drawer is visible if parent window became visible since the drawer was opened.
|
||||||
|
|
||||||
2010-11-13 Riccardo Mottola
|
2010-11-13 Riccardo Mottola
|
||||||
|
|
||||||
* Images/common_DownloadFolder.tiff
|
* Images/common_DownloadFolder.tiff
|
||||||
|
|
|
@ -387,6 +387,8 @@ static NSNotificationCenter *nc = nil;
|
||||||
{
|
{
|
||||||
NSRect frame = [self frameFromParentWindowFrameInState:[_drawer state]];
|
NSRect frame = [self frameFromParentWindowFrameInState:[_drawer state]];
|
||||||
[self setFrame: frame display: YES];
|
[self setFrame: frame display: YES];
|
||||||
|
if (![self isVisible] && [_drawer state] != NSDrawerClosedState)
|
||||||
|
[self orderFront:self];
|
||||||
}
|
}
|
||||||
if ([self isVisible] && [_parentWindow isKeyWindow]) // do our best to maintain proper window ordering
|
if ([self isVisible] && [_parentWindow isKeyWindow]) // do our best to maintain proper window ordering
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue