Height -> Width; fixes #6168 (#6213)
authorE.Z. Hart <hartez@users.noreply.github.com>
Fri, 17 May 2019 00:21:16 +0000 (17:21 -0700)
committerRui Marinho <me@ruimarinho.net>
Fri, 17 May 2019 00:21:16 +0000 (17:21 -0700)
Xamarin.Forms.Platform.iOS/CollectionView/HorizontalTemplatedCell.cs

index 5c58eb6..c0b17ee 100644 (file)
@@ -17,7 +17,7 @@ namespace Xamarin.Forms.Platform.iOS
                        var measure = VisualElementRenderer.Element.Measure(double.PositiveInfinity, 
                                ConstrainedDimension, MeasureFlags.IncludeMargins);
 
-                       return new CGSize(measure.Request.Height, ConstrainedDimension);
+                       return new CGSize(measure.Request.Width, ConstrainedDimension);
                }
 
                public override void ConstrainTo(CGSize constraint)