2
0
Эх сурвалжийг харах

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

Alexander Koblov 3 сар өмнө
parent
commit
569a0d1181
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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;