From c54a6b687fbb3ab24ed6f294bf52161da2b609e0 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 fdce8727a..cd2386ada 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;