summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorVitaly Knyazev <VitalyKnyazev@users.noreply.github.com>2017-03-14 16:22:21 +0000
committerSamantha Houts <samantha@teamredwall.com>2017-03-14 09:22:21 -0700
commitcf213891c9028107cb80105c6bb08cdcf4f8b8ef (patch)
treeb14ccfe193560d1e4cdc3fb8672a36cf6be31838 /Xamarin.Forms.Platform.iOS
parent29a818b90b218413af13b17dabf8df63e0fe9e39 (diff)
downloadxamarin-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.cs3
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);