IDE: object inspector: use font for default row height calculation

git-svn-id: trunk@63968 -
This commit is contained in:
ondrej 2020-10-08 06:41:08 +00:00
parent a87befd71c
commit 999954fab8

View File

@ -1464,7 +1464,7 @@ function TOICustomPropertyGrid.RealDefaultItemHeight: integer;
begin
Result := FDefaultItemHeight;
if (Result<=0) then
Result := Scale96ToForm(22);
Result := Canvas.TextHeight('Hg')*5 div 4 + 2;
end;
function TOICustomPropertyGrid.GetRowByPath(const PropPath: string): TOIPropertyGridRow;