mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Set cell height at least to 20 pixels
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16719 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
236f39512d
commit
2a5bf8cd45
1 changed files with 4 additions and 1 deletions
|
@ -234,7 +234,10 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
|
||||
r = [_font boundingRectForFont];
|
||||
/* Should make up 110, 20 for default font */
|
||||
_cellSize = NSMakeSize (r.size.width * 10., r.size.height + 5.);
|
||||
_cellSize = NSMakeSize (r.size.width * 10., r.size.height + 6.);
|
||||
|
||||
if (_cellSize.height < 20)
|
||||
_cellSize.height = 20;
|
||||
|
||||
[self setNeedsSizing: YES];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue