mirror of https://github.com/buggins/dlangui.git
fix auto fit col/row sizes
This commit is contained in:
parent
8a5127cef5
commit
0091cacd88
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue