From 230058b80845f8885846178742fa6a02c5d64f45 Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Wed, 16 Oct 2024 15:49:34 +0200 Subject: [PATCH] chore: Adjust for macOS --- src/Uno.UI/UI/Xaml/MobileLayoutingHelpers.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Uno.UI/UI/Xaml/MobileLayoutingHelpers.cs b/src/Uno.UI/UI/Xaml/MobileLayoutingHelpers.cs index 53c3f8988b2a..897f0c619a2b 100644 --- a/src/Uno.UI/UI/Xaml/MobileLayoutingHelpers.cs +++ b/src/Uno.UI/UI/Xaml/MobileLayoutingHelpers.cs @@ -191,7 +191,11 @@ public static void ArrangeElement(View view, Rect finalRect) view.Frame = finalRect; } +#if __IOS__ view.LayoutIfNeeded(); +#else + view.LayoutSubtreeIfNeeded(); +#endif foreach (var child in view.Subviews) {