mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 12:39:23 +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
|
if HandleAllocated and (tvoAutoItemHeight in FOptions) then begin
|
||||||
FDefItemHeight:=
|
FDefItemHeight:=
|
||||||
Canvas.TextHeight('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789|\()^')
|
Canvas.TextHeight('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789|\()^')
|
||||||
+2 // margin
|
|
||||||
+2 // border
|
+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;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user