mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 21:29:36 +02:00
LazControls: Fix alignment of caption for TThemedCheckBox.Alignment = taLeftJustify. Issue #0029603.
git-svn-id: trunk@51531 -
This commit is contained in:
parent
20d48b24bd
commit
ed047fbbd3
@ -366,7 +366,7 @@ begin
|
||||
aCheckBoxPoint.Y := (ARect.Bottom + ARect.Top - CheckBoxSize.cy) div 2;
|
||||
if ARightToLeft xor (AAlignment = taLeftJustify) then begin { Caption is on the Left }
|
||||
aCheckBoxPoint.X := ARect.Right - CheckBoxSize.cx;
|
||||
aCaptionPoint.X := aCheckBoxPoint.X - cIndent - aTextSize.cx;
|
||||
aCaptionPoint.X := ARect.Left;
|
||||
end else begin { Caption is on the Right }
|
||||
aCheckBoxPoint.X := ARect.Left;
|
||||
aCaptionPoint.X := aCheckBoxPoint.X + cIndent + CheckBoxSize.cx;
|
||||
|
Loading…
Reference in New Issue
Block a user