mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 14:57:57 +02:00
IDE, DockedFormEditor: Check for csDesignInstance, instead of csDesigning to determine if a form/frame is the top-parent in the designer. (To disable autosizing for them). Issue #41368
This commit is contained in:
parent
54e532cdbe
commit
9b4c81b56b
@ -3085,7 +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)))
|
||||
(not (csDesignInstance in AControl.ComponentState))
|
||||
then
|
||||
AControl.DoAutoSize;
|
||||
if AControl is TWinControl then
|
||||
|
Loading…
Reference in New Issue
Block a user