mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 11:01:03 +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
|
@ -1264,6 +1264,11 @@ static NSNotificationCenter *nc;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_needsSizing)
|
||||||
|
{
|
||||||
|
[self sizeToFit];
|
||||||
|
}
|
||||||
|
|
||||||
_oldHiglightedIndex = [[self menuRepresentation] highlightedItemIndex];
|
_oldHiglightedIndex = [[self menuRepresentation] highlightedItemIndex];
|
||||||
_transient = YES;
|
_transient = YES;
|
||||||
|
|
||||||
|
@ -1297,10 +1302,6 @@ static NSNotificationCenter *nc;
|
||||||
[contentView addSubview: _view];
|
[contentView addSubview: _view];
|
||||||
|
|
||||||
[_view update];
|
[_view update];
|
||||||
if (_needsSizing)
|
|
||||||
{
|
|
||||||
[self sizeToFit];
|
|
||||||
}
|
|
||||||
|
|
||||||
[_bWindow orderFront: self];
|
[_bWindow orderFront: self];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue