mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:00:48 +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
1578e96bd3
commit
7b0d706911
1 changed files with 4 additions and 1 deletions
|
@ -234,7 +234,10 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
||||||
|
|
||||||
r = [_font boundingRectForFont];
|
r = [_font boundingRectForFont];
|
||||||
/* Should make up 110, 20 for default font */
|
/* 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];
|
[self setNeedsSizing: YES];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue