From 6c8abfdc14138bb803272497b0f97793106acb08 Mon Sep 17 00:00:00 2001 From: Jimmy Garrido Date: Fri, 16 Dec 2016 17:08:03 -0800 Subject: [Windows] Fix modal pages being laid out below soft buttons (#395) --- Xamarin.Forms.Platform.WinRT.Phone/WindowsPhonePlatform.cs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'Xamarin.Forms.Platform.WinRT.Phone') diff --git a/Xamarin.Forms.Platform.WinRT.Phone/WindowsPhonePlatform.cs b/Xamarin.Forms.Platform.WinRT.Phone/WindowsPhonePlatform.cs index 7564e673..524463f6 100644 --- a/Xamarin.Forms.Platform.WinRT.Phone/WindowsPhonePlatform.cs +++ b/Xamarin.Forms.Platform.WinRT.Phone/WindowsPhonePlatform.cs @@ -14,18 +14,6 @@ namespace Xamarin.Forms.Platform.WinRT _status.Hiding += OnStatusBarHiding; } - internal override Rectangle WindowBounds - { - get - { - bool landscape = Device.Info.CurrentOrientation.IsLandscape (); - double offset = (landscape) ? _status.OccludedRect.Width : _status.OccludedRect.Height; - - Rectangle original = base.WindowBounds; - return new Rectangle (original.X, original.Y, original.Width - ((landscape) ? offset : 0), original.Height - ((landscape) ? 0 : offset)); - } - } - readonly StatusBar _status; void OnStatusBarHiding (StatusBar sender, object args) -- cgit v1.2.3