Browse Source

FIX: ELayoutException: TControl.InvalidatePreferredSize loop detected (fixes #2169)

Alexander Koblov 3 months ago
parent
commit
569a0d1181
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/fFileOpDlg.pas

+ 2 - 0
src/fFileOpDlg.pas

@@ -295,6 +295,8 @@ begin
   // Workaround: TWinControl.WMSize loop detected
   Constraints.MaxWidth:= Screen.Width;
   Constraints.MaxHeight:= Screen.Height;
+  // Workaround: TControl.InvalidatePreferredSize loop detected
+  pnlButtons.Constraints.MinWidth:= Constraints.MinWidth;
 end;
 
 function TfrmFileOp.GetFirstOperationHandle(QueueIdentifier: TOperationsManagerQueueIdentifier): TOperationHandle;