diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-12-14 12:38:46 -0800 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-12-14 20:38:46 +0000 |
commit | 9535315986c6ad5d51ec28f676310b9a5f7d444c (patch) | |
tree | d0492d1c6c35581040ca76aff4dc577c7227c840 /Xamarin.Forms.Platform.iOS/ContextActionCell.cs | |
parent | eca25db80eebc2e7936f154246ed7996f6d071a1 (diff) | |
download | xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.tar.gz xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.tar.bz2 xamarin-forms-9535315986c6ad5d51ec28f676310b9a5f7d444c.zip |
Deprecate versions of iOS older than 8 (#630)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/ContextActionCell.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/ContextActionCell.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs index 39e0a359..2e5925c7 100644 --- a/Xamarin.Forms.Platform.iOS/ContextActionCell.cs +++ b/Xamarin.Forms.Platform.iOS/ContextActionCell.cs @@ -169,9 +169,8 @@ 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 +298,6 @@ 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 x = frame.X - _scroller.ContentOffset.X; |