mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:10:38 +00:00
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:
parent
a151e8cc98
commit
c8f2fa87a8
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue