diff options
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/AbsoluteLayoutGallery.cs')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/AbsoluteLayoutGallery.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/AbsoluteLayoutGallery.cs b/Xamarin.Forms.Controls/GalleryPages/AbsoluteLayoutGallery.cs index 23a2035a..4c588ab9 100644 --- a/Xamarin.Forms.Controls/GalleryPages/AbsoluteLayoutGallery.cs +++ b/Xamarin.Forms.Controls/GalleryPages/AbsoluteLayoutGallery.cs @@ -87,11 +87,8 @@ namespace Xamarin.Forms.Controls { public AbsoluteLayoutGallery () { - Device.OnPlatform (iOS: () => { - if (Device.Idiom == TargetIdiom.Tablet) { - Padding = new Thickness (0, 0, 0, 60); - } - }); + if (Device.RuntimePlatform == Device.iOS && Device.Idiom == TargetIdiom.Tablet) + Padding = new Thickness(0, 0, 0, 60); BindingContext = new AbsolutePositioningExplorationViewModel (); var absLayout = new AbsoluteLayout { |