mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 01:48:03 +02:00
anchordocking: clean up
git-svn-id: trunk@46755 -
This commit is contained in:
parent
349fd28c87
commit
15749008b6
@ -4342,27 +4342,11 @@ begin
|
||||
Child.AnchorSide[Side].Assign(AnchorSide[Side]);
|
||||
end;
|
||||
end;
|
||||
{ was :
|
||||
i:=0;
|
||||
while i<ControlCount-1 do begin
|
||||
Child:=Controls[i];
|
||||
if Child.Owner=Self then
|
||||
inc(i)
|
||||
else begin
|
||||
Child.Parent:=ParentSite;
|
||||
Child.SetBounds(Child.Left+Left,Child.Top+Top,Child.Width,Child.Height);
|
||||
for Side:=Low(TAnchorKind) to High(TAnchorKind) do begin
|
||||
if Child.AnchorSide[Side].Control=Self then
|
||||
Child.AnchorSide[Side].Assign(AnchorSide[Side]);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
}
|
||||
Parent:=nil;
|
||||
DockMaster.NeedFree(Self);
|
||||
finally
|
||||
EnableAutoSizing;
|
||||
ParentSite.EndUpdateLayout;
|
||||
// not needed, because this site is freed: EnableAutoSizing;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user