Fixed PeekAreaInsets not working on iOS (#7802)
authorJavier Suárez Ruiz <javiersuarezruiz@hotmail.com>
Thu, 3 Oct 2019 22:47:16 +0000 (00:47 +0200)
committerRui Marinho <me@ruimarinho.net>
Thu, 3 Oct 2019 22:47:16 +0000 (23:47 +0100)
Xamarin.Forms.Platform.iOS/CollectionView/CarouselViewRenderer.cs

index 56240f2..1b1f355 100644 (file)
@@ -22,7 +22,7 @@ namespace Xamarin.Forms.Platform.iOS
                {
                        base.OnElementPropertyChanged(sender, changedProperty);
 
-                       if (changedProperty.Is(CarouselView.PeekAreaInsetsProperty))
+                       if (changedProperty.IsOneOf(CarouselView.PeekAreaInsetsProperty, CarouselView.NumberOfSideItemsProperty))
                        {
                                (CarouselViewController.Layout as CarouselViewLayout).UpdateConstraints(Frame.Size);
                                CarouselViewController.Layout.InvalidateLayout();