mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 18:39:30 +02:00
IDE: fixed Disable/EnableAutosizing debug designer form
git-svn-id: trunk@50180 -
This commit is contained in:
parent
b89ff5d096
commit
c6391b6a34
@ -1043,7 +1043,7 @@ begin
|
||||
//debugln('[TJITForms.DoCreateJITComponent] Creating an instance of JIT class "'+NewClassName+'" = class('+AncestorClass.ClassName+') ...');
|
||||
Instance:=TComponent(FCurReadClass.NewInstance);
|
||||
if DisableAutoSize and (Instance is TControl) then
|
||||
TControl(Instance).DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('TJITComponentList.DoCreateJITComponent'){$ENDIF};
|
||||
TControl(Instance).DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('TAnchorDockMaster Delayed'){$ENDIF};
|
||||
//debugln('[TJITForms.DoCreateJITComponent] Initializing new instance ... ',DbgS(Instance));
|
||||
TComponent(FCurReadJITComponent):=Instance;
|
||||
try
|
||||
|
@ -1830,7 +1830,7 @@ begin
|
||||
DisableAutoSize);
|
||||
if DisableAutoSize and (NewUnitInfo.Component<>nil)
|
||||
and (NewUnitInfo.Component is TControl) then
|
||||
TControl(NewUnitInfo.Component).EnableAutoSizing{$IFDEF DebugDisableAutoSizing}('TLazSourceFileManager.NewFile'){$ENDIF};
|
||||
TControl(NewUnitInfo.Component).EnableAutoSizing{$IFDEF DebugDisableAutoSizing}('TAnchorDockMaster Delayed'){$ENDIF};
|
||||
end;
|
||||
if Result<>mrOk then
|
||||
begin
|
||||
@ -5774,7 +5774,7 @@ begin
|
||||
if ofLoadHiddenResource in OpenFlags then
|
||||
NewControl.ControlStyle:=NewControl.ControlStyle+[csNoDesignVisible];
|
||||
if DisableAutoSize then
|
||||
NewControl.EnableAutoSizing{$IFDEF DebugDisableAutoSizing}('TLazSourceFileManager.LoadLFM'){$ENDIF};
|
||||
NewControl.EnableAutoSizing{$IFDEF DebugDisableAutoSizing}('TAnchorDockMaster Delayed'){$ENDIF};
|
||||
end;
|
||||
|
||||
if NewComponent is TFrame then
|
||||
|
Loading…
Reference in New Issue
Block a user