diff options
Diffstat (limited to 'Xamarin.Forms.Controls/GalleryPages/StackLayoutGallery.cs')
-rw-r--r-- | Xamarin.Forms.Controls/GalleryPages/StackLayoutGallery.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Controls/GalleryPages/StackLayoutGallery.cs b/Xamarin.Forms.Controls/GalleryPages/StackLayoutGallery.cs index b08b5f35..7a985653 100644 --- a/Xamarin.Forms.Controls/GalleryPages/StackLayoutGallery.cs +++ b/Xamarin.Forms.Controls/GalleryPages/StackLayoutGallery.cs @@ -10,11 +10,8 @@ namespace Xamarin.Forms.Controls { public StackLayoutGallery () { - 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 stack = new StackLayout { Orientation = StackOrientation.Vertical }; Button b1 = new Button { Text = "Boring", HeightRequest = 500, MinimumHeightRequest = 50 }; |