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:
Sergii Stoian 2003-04-04 12:11:25 +00:00
parent caad65e58c
commit be2339b537

View file

@ -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];
}