macOS: Fixed IsPresented PopOver (#8312)
authorJohann Weiher <info@suplanus.de>
Thu, 31 Oct 2019 10:35:09 +0000 (11:35 +0100)
committerGerald Versluis <gerald.versluis@microsoft.com>
Thu, 31 Oct 2019 10:35:09 +0000 (11:35 +0100)
#3149

Xamarin.Forms.Platform.MacOS/Renderers/MasterDetailPageRenderer.cs

index fe7851d..a5c1635 100644 (file)
@@ -146,7 +146,7 @@ namespace Xamarin.Forms.Platform.MacOS
 
                        // Ignore the IsPresented value being set to false for Split mode on desktop
                        // and allow the master view to be made initially visible
-                       if (Device.Idiom == TargetIdiom.Desktop && !view.Hidden)
+            if (Device.Idiom == TargetIdiom.Desktop && !view.Hidden && MasterDetailPage.MasterBehavior != MasterBehavior.Popover)
                                return;
 
                        if (MasterDetailPage.IsPresented && view.Hidden)
@@ -274,4 +274,4 @@ namespace Xamarin.Forms.Platform.MacOS
                        }
                }
        }
-}
\ No newline at end of file
+}