diff options
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/MapGallery.cs')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/MapGallery.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/MapGallery.cs b/Xamarin.Forms.Controls/GalleryPages/MapGallery.cs index dd283c3a..0488cc27 100644 --- a/Xamarin.Forms.Controls/GalleryPages/MapGallery.cs +++ b/Xamarin.Forms.Controls/GalleryPages/MapGallery.cs @@ -14,11 +14,8 @@ namespace Xamarin.Forms.Controls public MapGallery () { - 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); var map = MakeMap (); |