瀏覽代碼

LayoutSubviews before calculate the Height on the Progress scenario.

BDisp 4 年之前
父節點
當前提交
7dc48cc34f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      UICatalog/Scenarios/Progress.cs

+ 1 - 0
UICatalog/Scenarios/Progress.cs

@@ -100,6 +100,7 @@ namespace UICatalog {
 				};
 				Add (_startedLabel);
 
+				LayoutSubviews ();
 
 				// Set height to height of controls + spacing + frame
 				Height = 2 + _verticalSpace + Dim.Height (startButton) + _verticalSpace + Dim.Height (ActivityProgressBar) + _verticalSpace + Dim.Height (PulseProgressBar) + _verticalSpace;