mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 23:18:01 +02:00
lcl: TToolBar: auto fix anchoring of child controls
git-svn-id: trunk@24076 -
This commit is contained in:
parent
62fc1305ad
commit
4f4bb0755f
@ -609,9 +609,13 @@ begin
|
||||
for i:=0 to ControlCount-1 do
|
||||
begin
|
||||
CurControl := Controls[i];
|
||||
if CurControl.Align = alNone then
|
||||
OrderedControls.Add(CurControl)
|
||||
else
|
||||
if CurControl.Align = alNone then begin
|
||||
// set to Left,Top anchoring
|
||||
CurControl.Anchors:=[akLeft,akTop];
|
||||
CurControl.AnchorSide[akLeft].Control:=nil;
|
||||
CurControl.AnchorSide[akTop].Control:=nil;
|
||||
OrderedControls.Add(CurControl);
|
||||
end else
|
||||
AlignedControls.Add(CurControl)
|
||||
end;
|
||||
// sort OrderedControls
|
||||
|
Loading…
Reference in New Issue
Block a user