mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 15:33:46 +02:00
improved tvoAutoItemHeight
git-svn-id: trunk@4001 -
This commit is contained in:
parent
02777dd1b5
commit
130452f059
@ -2833,9 +2833,12 @@ begin
|
||||
if HandleAllocated and (tvoAutoItemHeight in FOptions) then begin
|
||||
FDefItemHeight:=
|
||||
Canvas.TextHeight('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789|\()^')
|
||||
+2 // margin
|
||||
+2 // border
|
||||
;
|
||||
if (Images<>nil) and (Images.Height>FDefItemHeight) then
|
||||
FDefItemHeight:=Images.Height;
|
||||
if (StateImages<>nil) and (StateImages.Height>FDefItemHeight) then
|
||||
FDefItemHeight:=StateImages.Height;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user