LCL, CoolBar: fix error calculating Control's width when BiDiMode = bdLeftToRight

git-svn-id: trunk@40473 -
This commit is contained in:
juha 2013-03-04 01:06:21 +00:00
parent 34952b678a
commit faaf316280

View File

@ -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;