From 7dc48cc34fe291e992e0265f7eac60e5c475a6bf Mon Sep 17 00:00:00 2001 From: BDisp Date: Sun, 15 Nov 2020 21:53:06 +0000 Subject: [PATCH] LayoutSubviews before calculate the Height on the Progress scenario. --- UICatalog/Scenarios/Progress.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/UICatalog/Scenarios/Progress.cs b/UICatalog/Scenarios/Progress.cs index 3eccf5c13..bf4440bf4 100644 --- a/UICatalog/Scenarios/Progress.cs +++ b/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;