mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 17:20:55 +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
|
if Self.ItemHeight <> 0 then
|
||||||
AHeight := Self.ItemHeight
|
AHeight := Self.ItemHeight
|
||||||
else
|
else
|
||||||
AHeight := ItemHeight;
|
AHeight := Canvas.TextHeight('Hg');
|
||||||
|
|
||||||
MeasureItem(Integer(ItemId), AHeight);
|
MeasureItem(Integer(ItemId), AHeight);
|
||||||
if AHeight > 0 then
|
if AHeight > 0 then
|
||||||
ItemHeight := AHeight;
|
ItemHeight := AHeight;
|
||||||
|
Loading…
Reference in New Issue
Block a user