diff options
author | Samantha Houts <samantha@teamredwall.com> | 2017-03-14 03:30:22 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-03-14 10:30:22 +0000 |
commit | e7f5a4188d2c102a3eada30b2d55a5e7ee481f1d (patch) | |
tree | 810a387a1b03ba5d63fc130fd566be80225665b5 /Xamarin.Forms.Platform.iOS/Cells | |
parent | b23e40a2010f93164e36c90e411c2cc0d5d4e60e (diff) | |
download | xamarin-forms-e7f5a4188d2c102a3eada30b2d55a5e7ee481f1d.tar.gz xamarin-forms-e7f5a4188d2c102a3eada30b2d55a5e7ee481f1d.tar.bz2 xamarin-forms-e7f5a4188d2c102a3eada30b2d55a5e7ee481f1d.zip |
[iOS] ViewCells will respond to ForceUpdateSize in RecycleElement mode (#809)
* Add reproduction for 44525
* Clean up gallery page
* [iOS] Get index path from Cell in RecycleElement
* Fix obsolete code
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Cells')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Cells/CellRenderer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Cells/CellRenderer.cs b/Xamarin.Forms.Platform.iOS/Cells/CellRenderer.cs index ea0e8d3f..0abf7f80 100644 --- a/Xamarin.Forms.Platform.iOS/Cells/CellRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Cells/CellRenderer.cs @@ -48,9 +48,9 @@ namespace Xamarin.Forms.Platform.iOS { cell.ForceUpdateSizeRequested -= _onForceUpdateSizeRequested; - _onForceUpdateSizeRequested = (sender, e) => + _onForceUpdateSizeRequested = (sender, e) => { - var index = tableView.IndexPathForCell(nativeCell); + var index = tableView?.IndexPathForCell(nativeCell) ?? (sender as Cell)?.GetIndexPath(); if (index != null) tableView.ReloadRows(new[] { index }, UITableViewRowAnimation.None); }; |