From 93fc5532236f22e944a00aea0962bb4e3ab2dc9b Mon Sep 17 00:00:00 2001 From: Paul DiPietro Date: Mon, 6 Mar 2017 23:45:21 -0600 Subject: [UWP] Add width check for Detail on MDP to prevent potential crash (#775) --- Xamarin.Forms.Platform.UAP/MasterDetailControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xamarin.Forms.Platform.UAP') diff --git a/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs b/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs index 56dd4d94..65cdf713 100644 --- a/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs +++ b/Xamarin.Forms.Platform.UAP/MasterDetailControl.cs @@ -96,7 +96,7 @@ namespace Xamarin.Forms.Platform.UWP width -= _masterPresenter.ActualWidth; } - return new Windows.Foundation.Size(width, height); + return new Windows.Foundation.Size(width >= 0 ? width : 0, height); } } -- cgit v1.2.3