diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs index b4333c63..99a10666 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs @@ -644,10 +644,11 @@ namespace Xamarin.Forms.Platform.iOS return DefaultRowHeight; } - // We're going to base our estimate off of the first cell + // We're going to base our estimate off of the first cell var firstCell = templatedItems.First(); - if (firstCell.Height > 0) + // Let's skip this optimization for grouped lists. It will likely cause more trouble than it's worth. + if (firstCell.Height > 0 && !List.IsGroupingEnabled) { // Seems like we've got cells which already specify their height; since the heights are known, // we don't need to use estimatedRowHeight at all; zero will disable it and use the known heights |