* IDE, DockedFormEditor: Amend "Check for csDesignInstance, ...". Keep old check too, for increased compatibility Issue #41368

This commit is contained in:
Martin 2025-01-27 15:13:49 +01:00
parent 8f7ffbe676
commit 717ab6381d

View File

@ -3085,6 +3085,7 @@ procedure TControl.DoAllAutoSize;
if not AControl.IsControlVisible then exit;
if Needed and AControl.AutoSize and
(not ((AControl.Parent = nil) and (csDesigning in AControl.ComponentState))) and
(not (csDesignInstance in AControl.ComponentState))
then
AControl.DoAutoSize;