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:
Doug Simons 2010-11-16 21:50:23 +00:00
parent fc3eab7928
commit 066f959ed0
2 changed files with 7 additions and 0 deletions

View file

@ -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
{