mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 08:19:29 +02:00
lcl: listbox: highDPI: fix default item height
git-svn-id: trunk@53610 -
This commit is contained in:
parent
a8d1a4e375
commit
68b4e90a44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user