mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:20:37 +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
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue