LCL: TWinControl.ScollBy: less overhead

git-svn-id: trunk@50551 -
This commit is contained in:
mattias 2015-12-01 13:13:51 +00:00
parent 51516d0a47
commit c1f3bfbe36

View File

@ -6147,9 +6147,14 @@ var
i: Integer;
begin
// scroll inner controls
for i := 0 to ControlCount - 1 do
with Controls[i] do
SetBounds(Left + DeltaX, Top + DeltaY, Width, Height);
DisableAutoSizing;
try
for i := 0 to ControlCount - 1 do
with Controls[i] do
SetBounds(Left + DeltaX, Top + DeltaY, Width, Height);
finally
EnableAutoSizing;
end;
end;
{------------------------------------------------------------------------------