fix auto fit col/row sizes

This commit is contained in:
Vadim Lopatin 2014-06-09 10:05:46 +04:00
parent 8a5127cef5
commit 0091cacd88
1 changed files with 1 additions and 1 deletions

View File

@ -962,7 +962,7 @@ class StringGridWidget : GridWidgetBase {
protected override Point measureCell(int x, int y) {
FontRef fnt = font;
dstring txt = cellText(col, row);
dstring txt = cellText(x, y);
Point sz = fnt.textSize(txt);
if (sz.y < fnt.height)
sz.y = fnt.height;