mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:49:18 +02:00
AnchorDocking: Use async call for SimplifyPendingLayouts always. Issue #32591.
git-svn-id: trunk@56156 -
This commit is contained in:
parent
7427737860
commit
c1a20347a3
@ -3436,7 +3436,7 @@ begin
|
|||||||
RaiseGDBException('');
|
RaiseGDBException('');
|
||||||
dec(fUpdateCount);
|
dec(fUpdateCount);
|
||||||
if fUpdateCount=0 then
|
if fUpdateCount=0 then
|
||||||
SimplifyPendingLayouts;
|
QueueSimplify:=True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAnchorDockMaster.NeedSimplify(AControl: TControl);
|
procedure TAnchorDockMaster.NeedSimplify(AControl: TControl);
|
||||||
@ -3736,7 +3736,7 @@ begin
|
|||||||
try
|
try
|
||||||
BeginUpdateLayout;
|
BeginUpdateLayout;
|
||||||
try
|
try
|
||||||
DockMaster.SimplifyPendingLayouts;
|
DockMaster.QueueSimplify:=True;
|
||||||
NewControl.DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('TAnchorDockHostSite.ExecuteDock NewControl'){$ENDIF};
|
NewControl.DisableAutoSizing{$IFDEF DebugDisableAutoSizing}('TAnchorDockHostSite.ExecuteDock NewControl'){$ENDIF};
|
||||||
|
|
||||||
if (NewControl.Parent=Self) and (SiteType=adhstLayout) then begin
|
if (NewControl.Parent=Self) and (SiteType=adhstLayout) then begin
|
||||||
@ -6706,7 +6706,7 @@ begin
|
|||||||
if Site=nil then exit;
|
if Site=nil then exit;
|
||||||
DockMaster.RestoreLayouts.Add(DockMaster.CreateRestoreLayout(Site),true);
|
DockMaster.RestoreLayouts.Add(DockMaster.CreateRestoreLayout(Site),true);
|
||||||
Site.CloseSite;
|
Site.CloseSite;
|
||||||
DockMaster.SimplifyPendingLayouts;
|
DockMaster.QueueSimplify:=True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAnchorDockPageControl.MoveLeftButtonClick(Sender: TObject);
|
procedure TAnchorDockPageControl.MoveLeftButtonClick(Sender: TObject);
|
||||||
|
Loading…
Reference in New Issue
Block a user