diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/TableViewModelRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/TableViewModelRenderer.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/TableViewModelRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/TableViewModelRenderer.cs index 4a9f694d..2a754586 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/TableViewModelRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/TableViewModelRenderer.cs @@ -137,10 +137,11 @@ namespace Xamarin.Forms.Platform.iOS var cell = View.Model.GetCell(indexPath.Section, indexPath.Row); var h = cell.Height; - if (View.RowHeight == -1 && h == -1 && cell is ViewCell && Forms.IsiOS8OrNewer) { + if (View.RowHeight == -1 && h == -1 && cell is ViewCell) return UITableView.AutomaticDimension; - } else if (h == -1) + else if (h == -1) return tableView.RowHeight; + return (nfloat)h; } } |