mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:50:25 +02:00
lcl: don't call Resize for invisible controls in DoAllAutosize
git-svn-id: trunk@28676 -
This commit is contained in:
parent
4b168f8fd6
commit
35ffa66fe0
@ -2424,7 +2424,7 @@ procedure TControl.DoAllAutoSize;
|
||||
begin
|
||||
AWinControl := TWinControl(AControl);
|
||||
for i := 0 to AWinControl.ControlCount - 1 do
|
||||
if not CallAllOnResize(AWinControl.Controls[i]) then Exit;
|
||||
if AWinControl.Controls[i].IsControlVisible and not CallAllOnResize(AWinControl.Controls[i]) then Exit;
|
||||
end;
|
||||
AControl.Resize;
|
||||
Result := True;
|
||||
|
Loading…
Reference in New Issue
Block a user