mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 22:40:24 +02:00
LCL: TWinControl.ScollBy: less overhead
git-svn-id: trunk@50551 -
This commit is contained in:
parent
51516d0a47
commit
c1f3bfbe36
@ -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;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user