lcl: don't call Resize for invisible controls in DoAllAutosize

git-svn-id: trunk@28676 -
This commit is contained in:
paul 2010-12-11 05:21:19 +00:00
parent 4b168f8fd6
commit 35ffa66fe0

View File

@ -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;