mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 18:21:08 +00:00
displayTransient: Call [self sizeToFit] before caclulating locations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16355 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c8359e730b
commit
cede73dda9
1 changed files with 5 additions and 4 deletions
|
@ -1263,6 +1263,11 @@ static NSNotificationCenter *nc;
|
|||
NSDebugLLog (@"NSMenu", @"displaying transient while it is transient");
|
||||
return;
|
||||
}
|
||||
|
||||
if (_needsSizing)
|
||||
{
|
||||
[self sizeToFit];
|
||||
}
|
||||
|
||||
_oldHiglightedIndex = [[self menuRepresentation] highlightedItemIndex];
|
||||
_transient = YES;
|
||||
|
@ -1297,10 +1302,6 @@ static NSNotificationCenter *nc;
|
|||
[contentView addSubview: _view];
|
||||
|
||||
[_view update];
|
||||
if (_needsSizing)
|
||||
{
|
||||
[self sizeToFit];
|
||||
}
|
||||
|
||||
[_bWindow orderFront: self];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue