diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs b/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs index b21c8593..58cacdc6 100644 --- a/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Xamarin.Forms.Internals; #if __UNIFIED__ using CoreGraphics; using UIKit; @@ -33,7 +34,7 @@ namespace Xamarin.Forms.Platform.iOS { if (Element?.LayoutSubViews == null) { - Element?.InvalidateMeasure(InvalidationTrigger.MeasureChanged); + ((IVisualElementController)Element)?.InvalidateMeasure(InvalidationTrigger.MeasureChanged); base.LayoutSubviews(); return; } |