From 56a63f26953db2a36386692f114792a128e85410 Mon Sep 17 00:00:00 2001 From: mtz Date: Thu, 21 Mar 2019 01:08:13 +0100 Subject: [PATCH] [GTK] Fix NavigationBar check for Layout calc (#5506) The loop was exiting before current was being set. fixes #4713 --- Xamarin.Forms.Platform.GTK/Renderers/AbstractPageRenderer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Xamarin.Forms.Platform.GTK/Renderers/AbstractPageRenderer.cs b/Xamarin.Forms.Platform.GTK/Renderers/AbstractPageRenderer.cs index fdce872..cd2386a 100644 --- a/Xamarin.Forms.Platform.GTK/Renderers/AbstractPageRenderer.cs +++ b/Xamarin.Forms.Platform.GTK/Renderers/AbstractPageRenderer.cs @@ -225,10 +225,9 @@ namespace Xamarin.Forms.Platform.GTK.Renderers { hasParentNavigation = parent is NavigationPage; - if (hasParentNavigation) break; - current = parent; + if (hasParentNavigation) break; } var hasAncestorNavigationPage = hasParentNavigation && NavigationPage.GetHasNavigationBar(current); return hasAncestorNavigationPage; -- 2.7.4