From 066f959ed0de4e1de2b26a0aff7665315673ffcb Mon Sep 17 00:00:00 2001 From: Doug Simons Date: Tue, 16 Nov 2010 21:50:23 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/NSDrawer.m | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6833458c9..78b426e9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-16 Doug Simons + + * Source/NSDrawer.m: + Ensure drawer is visible if parent window became visible since the drawer was opened. + 2010-11-13 Riccardo Mottola * Images/common_DownloadFolder.tiff diff --git a/Source/NSDrawer.m b/Source/NSDrawer.m index 0e4e05c6e..ec2c908c8 100644 --- a/Source/NSDrawer.m +++ b/Source/NSDrawer.m @@ -387,6 +387,8 @@ static NSNotificationCenter *nc = nil; { NSRect frame = [self frameFromParentWindowFrameInState:[_drawer state]]; [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 {