mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 21:20:26 +02:00
LCL: Fix a ChangeBoundLoop-Detected-Error with TControlBar. Issue #27855, patch from Vojtech Cihak.
git-svn-id: trunk@49007 -
This commit is contained in:
parent
c26b722a98
commit
801a25a549
@ -103,6 +103,7 @@ end;
|
|||||||
|
|
||||||
procedure TCustomControlBar.AlignControlToBand(ABand: TCtrlBand; ARightToLeft: Boolean);
|
procedure TCustomControlBar.AlignControlToBand(ABand: TCtrlBand; ARightToLeft: Boolean);
|
||||||
begin
|
begin
|
||||||
|
ABand.Control.Align:=alNone;
|
||||||
ABand.Control.Top := ABand.Top + (ABand.Height - ABand.Control.Height) div 2;
|
ABand.Control.Top := ABand.Top + (ABand.Height - ABand.Control.Height) div 2;
|
||||||
if not ARightToLeft then
|
if not ARightToLeft then
|
||||||
ABand.Control.Left := ABand.Left + cFullGrabber
|
ABand.Control.Left := ABand.Left + cFullGrabber
|
||||||
|
Loading…
Reference in New Issue
Block a user