mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 05:09:33 +02:00
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:
parent
337b198136
commit
aa8f480e17
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user