summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorJimmy Garrido <jimmygarrido@outlook.com>2016-11-16 08:21:55 (GMT)
committerStephane Delcroix <stephane@delcroix.org>2016-11-16 08:21:55 (GMT)
commit46104e9ce186bb06567755f979414e0cbc426db6 (patch)
tree8e029151b04c9ca9427a328c13bcd3c91f61cf83 /Xamarin.Forms.Platform.iOS
parentffab780c2acd9ef49268d731e14b11b5fdbc3293 (diff)
downloadxamarin-forms-46104e9ce186bb06567755f979414e0cbc426db6.zip
xamarin-forms-46104e9ce186bb06567755f979414e0cbc426db6.tar.gz
xamarin-forms-46104e9ce186bb06567755f979414e0cbc426db6.tar.bz2
[iOS] Fix AccessoryView covered by section index list (#493)
* [iOS] Fix AccessoryView below section index list * Add UITest
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/ContextActionCell.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs
index 74f354c..39e0a35 100644
--- a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs
+++ b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs
@@ -87,14 +87,11 @@ namespace Xamarin.Forms.Platform.iOS
{
base.LayoutSubviews();
- if (_scroller == null || (_scroller != null && _scroller.Frame == Bounds))
+ if (_scroller == null || (_scroller != null && _scroller.Frame.Width == ContentView.Bounds.Width))
return;
Update(_tableView, _cell, ContentCell);
- _scroller.Frame = Bounds;
- ContentCell.Frame = Bounds;
-
if (ContentCell is ViewCellRenderer.ViewTableCell && ContentCell.Subviews.Length > 0 && Math.Abs(ContentCell.Subviews[0].Frame.Height - Bounds.Height) > 1)
{
// Something goes weird inside iOS where LayoutSubviews wont get called when updating the bounds if the user
@@ -130,7 +127,7 @@ namespace Xamarin.Forms.Platform.iOS
}
var height = Frame.Height;
- var width = tableView.Frame.Width;
+ var width = ContentView.Frame.Width;
nativeCell.Frame = new RectangleF(0, 0, width, height);
nativeCell.SetNeedsLayout();