diff options
author | Jimmy Garrido <jimmygarrido@outlook.com> | 2016-11-16 00:21:55 -0800 |
---|---|---|
committer | Stephane Delcroix <stephane@delcroix.org> | 2016-11-16 09:21:55 +0100 |
commit | 46104e9ce186bb06567755f979414e0cbc426db6 (patch) | |
tree | 8e029151b04c9ca9427a328c13bcd3c91f61cf83 /Xamarin.Forms.Platform.iOS | |
parent | ffab780c2acd9ef49268d731e14b11b5fdbc3293 (diff) | |
download | xamarin-forms-46104e9ce186bb06567755f979414e0cbc426db6.tar.gz xamarin-forms-46104e9ce186bb06567755f979414e0cbc426db6.tar.bz2 xamarin-forms-46104e9ce186bb06567755f979414e0cbc426db6.zip |
[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.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs index 74f354c5..39e0a359 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(); |