From efa2b781dd32de9ea358208e05418a533cad9b82 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 27 Dec 2024 23:14:39 +0100 Subject: [PATCH] impr: Better create hash popup size --- plugins/hashes/source/content/views/view_hashes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/hashes/source/content/views/view_hashes.cpp b/plugins/hashes/source/content/views/view_hashes.cpp index 5c408b984..5a8163749 100644 --- a/plugins/hashes/source/content/views/view_hashes.cpp +++ b/plugins/hashes/source/content/views/view_hashes.cpp @@ -156,6 +156,7 @@ namespace hex::plugin::hashes { ImGui::OpenPopup("##CreateHash"); } + ImGui::SetNextWindowSize(scaled({ 400, 0 }), ImGuiCond_Always); if (ImGui::BeginPopup("##CreateHash")) { ImGuiExt::InputTextIcon("hex.hashes.view.hashes.hash_name"_lang, ICON_VS_SYMBOL_KEY, m_newHashName); @@ -175,7 +176,7 @@ namespace hex::plugin::hashes { if (m_newHashName.empty() && m_selectedHash != nullptr) m_newHashName = hex::format("{} {}", Lang(m_selectedHash->getUnlocalizedName()), static_cast("hex.hashes.view.hashes.hash"_lang)); - if (ImGuiExt::BeginSubWindow("hex.ui.common.settings"_lang, nullptr, scaled({ 400, 200 }))) { + if (ImGuiExt::BeginSubWindow("hex.ui.common.settings"_lang, nullptr, scaled({ 0, 250 }))) { if (m_selectedHash != nullptr) { auto startPos = ImGui::GetCursorPosY(); m_selectedHash->draw();