mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-03 16:39:36 +01:00
CheckBoxThemed: fix checkbox position if Alignment is taLeftJustify (issue #0027127).
git-svn-id: trunk@47102 -
This commit is contained in:
parent
9f65b18ff8
commit
7fdf4a2de2
@ -368,10 +368,10 @@ begin
|
||||
taLeftJustify: begin
|
||||
if not ARightToLeft then begin { Caption is on the Left, aligned to the Left }
|
||||
aCaptionPoint.X := cFocusBorder;
|
||||
aCheckBoxPoint.X := cFocusBorder + aTextSize.cx + cIndent;
|
||||
aCheckBoxPoint.X := ARect.Right - CheckBoxSize.cx ;//cFocusBorder + aTextSize.cx + cIndent;
|
||||
end else begin { Caption is on the Right, aligned to the Right }
|
||||
aCaptionPoint.X := ARect.Right - aTextSize.cx - cFocusBorder;
|
||||
aCheckBoxPoint.X := aCaptionPoint.X - cIndent - CheckBoxSize.cx;
|
||||
aCheckBoxPoint.X := 0;//aCaptionPoint.X - cIndent - CheckBoxSize.cx;
|
||||
end;
|
||||
end;
|
||||
taRightJustify: begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user