Improved code regarding autosizing

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6226 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-03-08 23:55:14 +00:00
parent a151e8cc98
commit c8f2fa87a8

View file

@ -289,15 +289,13 @@ Class _nspopupbuttonCellClass = 0;
- (void) synchronizeTitleAndSelectedItem
{
[_cell synchronizeTitleAndSelectedItem];
[self sizeToFit];
[self setNeedsDisplay: YES];
}
- (void) sizeToFit
{
[[popb_menu menuRepresentation] sizeToFit];
[super sizeToFit];
}
- (void) mouseDown: (NSEvent*)theEvent