diff options
author | Vitaly Knyazev <VitalyKnyazev@users.noreply.github.com> | 2017-03-14 16:22:21 +0000 |
---|---|---|
committer | Samantha Houts <samantha@teamredwall.com> | 2017-03-14 09:22:21 -0700 |
commit | cf213891c9028107cb80105c6bb08cdcf4f8b8ef (patch) | |
tree | b14ccfe193560d1e4cdc3fb8672a36cf6be31838 /Xamarin.Forms.Platform.iOS | |
parent | 29a818b90b218413af13b17dabf8df63e0fe9e39 (diff) | |
download | xamarin-forms-cf213891c9028107cb80105c6bb08cdcf4f8b8ef.tar.gz xamarin-forms-cf213891c9028107cb80105c6bb08cdcf4f8b8ef.tar.bz2 xamarin-forms-cf213891c9028107cb80105c6bb08cdcf4f8b8ef.zip |
Bug 51536, initial iOS cell layout is incorrect when cell has context actions … (#787)
* Bug 51536, initial height is incorrect when cell has context actions or ListView is in recycle mode
* Improved fix for iOS uneven height cell layout
* Fixed indentation and added test case for issue 44525
* Fixed indentation for test case
* Added 1px room, this will fix Bugzilla31330 test, renamed test case to 51536
* Updated shared project file
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/ContextActionCell.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs index 90f04e9a..12db22a3 100644 --- a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs +++ b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs @@ -87,7 +87,8 @@ namespace Xamarin.Forms.Platform.iOS { base.LayoutSubviews(); - if (_scroller == null || (_scroller != null && _scroller.Frame.Width == ContentView.Bounds.Width)) + // Leave room for 1px of play because the border is 1 or .5px and must be accounted for. + if (_scroller == null || (_scroller.Frame.Width == ContentView.Bounds.Width && Math.Abs(_scroller.Frame.Height - ContentView.Bounds.Height) < 1)) return; Update(_tableView, _cell, ContentCell); |