diff options
author | Rui Marinho <me@ruimarinho.net> | 2016-06-30 17:06:59 +0100 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-06-30 09:06:59 -0700 |
commit | 128796e6d0c6bc4c48ba3b6de4ca97a33d698724 (patch) | |
tree | 2e96e7e2712a4836e8ed23d468a646347569d998 /Xamarin.Forms.Platform.iOS/Cells | |
parent | 0772a5278b96f289ff216f10da86b072bc6edbf1 (diff) | |
download | xamarin-forms-128796e6d0c6bc4c48ba3b6de4ca97a33d698724.tar.gz xamarin-forms-128796e6d0c6bc4c48ba3b6de4ca97a33d698724.tar.bz2 xamarin-forms-128796e6d0c6bc4c48ba3b6de4ca97a33d698724.zip |
[iOS] Fix regression 2.3.1-pre1 UnevenRows (#242)
* [Controls] Add test case for 39486
* [iOS] Fix math refactor error on calculating height
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Cells')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Cells/ViewCellRenderer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |