diff options
author | Vitaly Knyazev <VitalyKnyazev@users.noreply.github.com> | 2017-03-14 16:22:21 +0000 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-03-14 18:25:12 +0000 |
commit | 2a300b070c7cbcdb36fbbebb371fd092dc7c020b (patch) | |
tree | 08595aaeacfd32311ae20890cf04b8ff9c7e2d70 /Xamarin.Forms.Platform.iOS | |
parent | 2c26d11bf435c0443dd54b379478353559cefdeb (diff) | |
download | xamarin-forms-2a300b070c7cbcdb36fbbebb371fd092dc7c020b.tar.gz xamarin-forms-2a300b070c7cbcdb36fbbebb371fd092dc7c020b.tar.bz2 xamarin-forms-2a300b070c7cbcdb36fbbebb371fd092dc7c020b.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 2e5925c7..cac9e9ef 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); |