lcl: listbox: highDPI: fix default item height

git-svn-id: trunk@53610 -
This commit is contained in:
ondrej 2016-12-09 08:45:26 +00:00
parent a8d1a4e375
commit 68b4e90a44

View File

@ -294,7 +294,8 @@ begin
if Self.ItemHeight <> 0 then
AHeight := Self.ItemHeight
else
AHeight := ItemHeight;
AHeight := Canvas.TextHeight('Hg');
MeasureItem(Integer(ItemId), AHeight);
if AHeight > 0 then
ItemHeight := AHeight;