mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-05 03:38:17 +02:00
LCL, CoolBar: fix error calculating Control's width when BiDiMode = bdLeftToRight
git-svn-id: trunk@40473 -
This commit is contained in:
parent
34952b678a
commit
faaf316280
@ -92,7 +92,7 @@ begin
|
||||
if FCoolBar.BiDiMode = bdLeftToRight then
|
||||
FControl.Left := FCoolBar.GrabLeft + GrabWidth + 6
|
||||
else
|
||||
FControl.Left := FCoolBar.GrabLeft - FControl.Width;
|
||||
FControl.Left := FCoolBar.GrabLeft - FControl.Width - 6;
|
||||
end;
|
||||
|
||||
procedure TCoolBand.SetBorderStyle(aValue: TBorderStyle);
|
||||
@ -174,7 +174,7 @@ begin
|
||||
else if Assigned(FTextLabel) then
|
||||
FControl.Width := FTextLabel.Left - 12
|
||||
else
|
||||
FControl.Width := GrabWidth - 12;
|
||||
FControl.Width := FCoolBar.GrabLeft - 12;
|
||||
end;
|
||||
|
||||
procedure TCoolBand.UpdControl;
|
||||
|
Loading…
Reference in New Issue
Block a user