mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
A better fix for incorrect column size on combo box items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40382 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
773abfa12d
commit
6c9b40248b
1 changed files with 5 additions and 10 deletions
|
@ -205,16 +205,6 @@ static GSComboWindow *gsWindow = nil;
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)setFrame:(NSRect)frameRect display:(BOOL)flag
|
||||
{
|
||||
[super setFrame: frameRect display: flag];
|
||||
|
||||
// Column needs to track with frame size changes - and since this class breaks
|
||||
// the GNUstep table view paradigm relationship (NSClipView/NSTableView) and is
|
||||
// now resized outside the normal sequence we fudge it here...
|
||||
[[[_tableView tableColumns] objectAtIndex: 0] setWidth: frameRect.size.width];
|
||||
}
|
||||
|
||||
- (void) layoutWithComboBoxCell: (NSComboBoxCell *)comboBoxCell
|
||||
{
|
||||
NSSize bsize = [[GSTheme theme] sizeForBorderType: NSLineBorder];
|
||||
|
@ -276,6 +266,11 @@ static GSComboWindow *gsWindow = nil;
|
|||
[self setFrame: [self frameRectForContentRect: NSMakeRect(0, 0, popUpWidth,
|
||||
2 * bsize.height + (itemHeight + intercellSpacing.height) * (num - 1)
|
||||
+ itemHeight)] display: NO];
|
||||
|
||||
// Column needs to track with frame size changes - and since this class breaks
|
||||
// the GNUstep table view paradigm relationship (NSClipView/NSTableView) and is
|
||||
// now resized outside the normal sequence we fudge it here...
|
||||
[[[_tableView tableColumns] objectAtIndex: 0] setWidth: textCellWidth];
|
||||
}
|
||||
|
||||
- (void) positionWithComboBoxCell: (NSComboBoxCell *)comboBoxCell
|
||||
|
|
Loading…
Reference in a new issue