LCL/Grids: Fix grids truncating cell height during editing if TitleFont.Size is smaller than Font.Size. Issue #38203).

git-svn-id: trunk@64195 -
This commit is contained in:
wp 2020-12-11 15:18:33 +00:00
parent 337b198136
commit aa8f480e17

View File

@ -8575,6 +8575,9 @@ begin
// high control coords (like GTK2)
CellR := Bounds(-FEditor.Width-100, -FEditor.Height-100, CellR.Right-CellR.Left, CellR.Bottom-CellR.Top);
// Make sure to use the grid font, not that of the title (issue #38203).
Canvas.Font.Assign(Font);
if FEditorOptions and EO_AUTOSIZE = EO_AUTOSIZE then begin
if (FEditor = FStringEditor) and (EditorBorderStyle = bsNone) then
CellR := TWSCustomGridClass(WidgetSetClass).