From 1cb2e0d765c75fa2ed47d56c798c49ee1f8aa198 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 18 Dec 2023 13:55:50 +0100 Subject: [PATCH] impr: Make quick settings floating window auto resize --- plugins/builtin/source/content/welcome_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index 7627b815a..5b82eaa93 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -367,7 +367,7 @@ namespace hex::plugin::builtin { const ImVec2 windowSize = scaled({ 150, 60 }); ImGui::SetCursorPos(ImGui::GetWindowSize() - windowSize - ImGui::GetStyle().WindowPadding); ImGui::PushStyleColor(ImGuiCol_ChildBg, ImGui::GetStyleColorVec4(ImGuiCol_WindowBg)); - ImGuiExt::BeginSubWindow("hex.builtin.welcome.header.quick_settings"_lang, windowSize); + ImGuiExt::BeginSubWindow("hex.builtin.welcome.header.quick_settings"_lang, windowSize, ImGuiChildFlags_AutoResizeY); { if (ImGuiExt::ToggleSwitch("hex.builtin.welcome.quick_settings.simplified"_lang, &s_simplifiedWelcomeScreen)) { ContentRegistry::Settings::write("hex.builtin.setting.interface", "hex.builtin.setting.interface.simplified_welcome_screen", s_simplifiedWelcomeScreen);