From e6a4cdb213840aef32acae61ef1ed4fbaf2c19b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 27 May 2026 23:15:20 +0200 Subject: [PATCH] Fix minor UI issue --- UI/InstallZipScreen.h | 4 +++- UI/SimpleDialogScreen.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/UI/InstallZipScreen.h b/UI/InstallZipScreen.h index 3ff4beb65e..eb6ed062e3 100644 --- a/UI/InstallZipScreen.h +++ b/UI/InstallZipScreen.h @@ -42,7 +42,9 @@ protected: void CreateSettingsViews(UI::ViewGroup *parent) override; void CreateContentViews(UI::ViewGroup *parent) override; std::string_view GetTitle() const override; - + ViewLayoutMode LayoutMode() const override { + return ViewLayoutMode::ApplyInsets; + } private: void OnInstall(UI::EventParams ¶ms); void OnPlay(UI::EventParams ¶ms); diff --git a/UI/SimpleDialogScreen.cpp b/UI/SimpleDialogScreen.cpp index 2088f8648e..e0c0cc201c 100644 --- a/UI/SimpleDialogScreen.cpp +++ b/UI/SimpleDialogScreen.cpp @@ -45,7 +45,7 @@ void UISimpleBaseDialogScreen::CreateViews() { ViewLayoutMode UITwoPaneBaseDialogScreen::LayoutMode() const { const bool portrait = GetDeviceOrientation() == DeviceOrientation::Portrait; if (portrait) { - if ((flags_ & TwoPaneFlags::SettingsCanScroll) || (flags_ & TwoPaneFlags::ContentsCanScroll)) { + if (((flags_ & TwoPaneFlags::SettingsCanScroll) && !(flags_ & TwoPaneFlags::SettingsToTheRight)) || (flags_ & TwoPaneFlags::ContentsCanScroll)) { return ViewLayoutMode::IgnoreBottomInset; } else { return ViewLayoutMode::ApplyInsets;