From a21e9ca1af00342c868e5f494c0a20e18bbc08c3 Mon Sep 17 00:00:00 2001 From: Totoo Date: Thu, 26 Sep 2024 14:29:35 +0200 Subject: [PATCH] Nav fix, fixes #1197 (#2270) * Nav fix, fixes #1197 --- firmware/application/ui_navigation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/ui_navigation.cpp b/firmware/application/ui_navigation.cpp index 507b60d6..09a47bdd 100644 --- a/firmware/application/ui_navigation.cpp +++ b/firmware/application/ui_navigation.cpp @@ -722,8 +722,8 @@ void NavigationView::update_view() { auto top_view = top.view.get(); add_child(top_view); - top_view->set_parent_rect({{0, 0}, size()}); - + auto newSize = (is_top()) ? Size{size().width(), size().height() - 16} : size(); // if top(), then there is the info bar at the bottom, so leave space for it + top_view->set_parent_rect({{0, 0}, newSize}); focus(); set_dirty();