diff options
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/ContextActionCell.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/ContextActionCell.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs index 39e0a359..469924c8 100644 --- a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs +++ b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs @@ -169,9 +169,7 @@ namespace Xamarin.Forms.Platform.iOS _scroller = new UIScrollView(new RectangleF(0, 0, width, height)); _scroller.ScrollsToTop = false; _scroller.ShowsHorizontalScrollIndicator = false; - - if (Forms.IsiOS8OrNewer) - _scroller.PreservesSuperviewLayoutMargins = true; + _scroller.PreservesSuperviewLayoutMargins = true; ContentView.AddSubview(_scroller); } @@ -299,11 +297,8 @@ namespace Xamarin.Forms.Platform.iOS } var frame = _moreButton.Frame; - if (!Forms.IsiOS8OrNewer) - { - var container = _moreButton.Superview; - frame = new RectangleF(container.Frame.X, 0, frame.Width, frame.Height); - } + var container = _moreButton.Superview; + frame = new RectangleF(container.Frame.X, 0, frame.Width, frame.Height); var x = frame.X - _scroller.ContentOffset.X; |