diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-12-14 12:38:46 -0800 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-12-14 20:38:46 +0000 |
commit | 9535315986c6ad5d51ec28f676310b9a5f7d444c (patch) | |
tree | d0492d1c6c35581040ca76aff4dc577c7227c840 /Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs | |
parent | eca25db80eebc2e7936f154246ed7996f6d071a1 (diff) | |
download | xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.tar.gz xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.tar.bz2 xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.zip |
Deprecate versions of iOS older than 8 (#630)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs index 89001cc8..2c0ac91a 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/ListViewRenderer.cs @@ -373,8 +373,7 @@ namespace Xamarin.Forms.Platform.iOS } else { - if (Forms.IsiOS7OrNewer) - Control.EstimatedRowHeight = 0; + Control.EstimatedRowHeight = 0; _estimatedRowHeight = true; } } @@ -644,10 +643,7 @@ namespace Xamarin.Forms.Platform.iOS if (List.RowHeight == -1 && cell.Height == -1 && cell is ViewCell) { - // only doing ViewCell because its the only one that matters (the others dont adjust ANYWAY) - if (Forms.IsiOS8OrNewer) - return UITableView.AutomaticDimension; - return CalculateHeightForCell(tableView, cell); + return UITableView.AutomaticDimension; } var renderHeight = cell.RenderHeight; @@ -713,7 +709,7 @@ namespace Xamarin.Forms.Platform.iOS { _uiTableViewController = uiTableViewController; _uiTableView = uiTableViewController.TableView; - _defaultSectionHeight = Forms.IsiOS8OrNewer ? DefaultRowHeight : _uiTableView.SectionHeaderHeight; + _defaultSectionHeight = DefaultRowHeight; List = list; List.ItemSelected += OnItemSelected; UpdateShortNameListener(); |