mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 16:56:15 -04:00
parent
20f45e88f3
commit
a21e9ca1af
1 changed files with 2 additions and 2 deletions
|
@ -722,8 +722,8 @@ void NavigationView::update_view() {
|
||||||
auto top_view = top.view.get();
|
auto top_view = top.view.get();
|
||||||
|
|
||||||
add_child(top_view);
|
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();
|
focus();
|
||||||
set_dirty();
|
set_dirty();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue