diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2017-03-06 23:45:21 -0600 |
---|---|---|
committer | Samantha Houts <samantha@teamredwall.com> | 2017-03-06 21:45:21 -0800 |
commit | 93fc5532236f22e944a00aea0962bb4e3ab2dc9b (patch) | |
tree | bd0a3fa988985f56a8097d04845c671962f6bdfd /Xamarin.Forms.Platform.UAP | |
parent | 65d848051912e1522d692ba647945625f271b23c (diff) | |
download | xamarin-forms-93fc5532236f22e944a00aea0962bb4e3ab2dc9b.tar.gz xamarin-forms-93fc5532236f22e944a00aea0962bb4e3ab2dc9b.tar.bz2 xamarin-forms-93fc5532236f22e944a00aea0962bb4e3ab2dc9b.zip |
[UWP] Add width check for Detail on MDP to prevent potential crash (#775)
Diffstat (limited to 'Xamarin.Forms.Platform.UAP')
-rw-r--r-- | Xamarin.Forms.Platform.UAP/MasterDetailControl.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |