From 128796e6d0c6bc4c48ba3b6de4ca97a33d698724 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Thu, 30 Jun 2016 17:06:59 +0100 Subject: [iOS] Fix regression 2.3.1-pre1 UnevenRows (#242) * [Controls] Add test case for 39486 * [iOS] Fix math refactor error on calculating height --- Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xamarin.Forms.Platform.iOS/Cells') diff --git a/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs b/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs index 4f8a43e8..47783ebb 100644 --- a/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs @@ -123,7 +123,7 @@ namespace Xamarin.Forms.Platform.iOS var result = renderer.Element.Measure(width, height); // make sure to add in the separator if needed - var finalheight = ((float)result.Request.Height + (SupressSeparator ? 0f : 1f)) / UIScreen.MainScreen.Scale; + var finalheight = (float)result.Request.Height + (SupressSeparator ? 0f : 1f) / UIScreen.MainScreen.Scale; return new SizeF(size.Width, finalheight); } -- cgit v1.2.3