LCL: Fix a ChangeBoundLoop-Detected-Error with TControlBar. Issue #27855, patch from Vojtech Cihak.

git-svn-id: trunk@49007 -
This commit is contained in:
juha 2015-05-12 22:26:31 +00:00
parent c26b722a98
commit 801a25a549

View File

@ -103,6 +103,7 @@ end;
procedure TCustomControlBar.AlignControlToBand(ABand: TCtrlBand; ARightToLeft: Boolean);
begin
ABand.Control.Align:=alNone;
ABand.Control.Top := ABand.Top + (ABand.Height - ABand.Control.Height) div 2;
if not ARightToLeft then
ABand.Control.Left := ABand.Left + cFullGrabber