[GTK] Fix NavigationBar check for Layout calc (#5506)
The loop was exiting before current was being set. fixes #4713
This commit is contained in:
Родитель
623ca5698d
Коммит
c54a6b687f
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче