From e82e89a87c0842b00b4f10fc63218398d6cef120 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Fri, 4 Mar 2022 09:59:36 +0100 Subject: [PATCH] Fixed minor UI glitch --- core/src/gui/menus/module_manager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/gui/menus/module_manager.cpp b/core/src/gui/menus/module_manager.cpp index 6bc48c4c..022cb255 100644 --- a/core/src/gui/menus/module_manager.cpp +++ b/core/src/gui/menus/module_manager.cpp @@ -36,7 +36,7 @@ namespace module_manager_menu { float lheight = ImGui::GetTextLineHeight(); float cellWidth = lheight - (2.0f * cellpad.y); float hdiff = cellpad.x - cellpad.y; - ImVec2 btnSize = ImVec2(lheight + 1, lheight - 1); + ImVec2 btnSize = ImVec2(lheight, lheight - 1); ImVec2 textOff = ImVec2(3.0f * style::uiScale, -5.0f * style::uiScale); if (ImGui::BeginTable("Module Manager Table", 3, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_ScrollY, ImVec2(0, 200))) { @@ -97,8 +97,6 @@ namespace module_manager_menu { ImGui::TableSetColumnIndex(2); if (strlen(modName) == 0) { style::beginDisabled(); } - ImVec2 cpos = ImGui::GetCursorPos(); - ImGui::SetCursorPos(ImVec2(cpos.x - hdiff, cpos.y)); if (ImGui::Button("+##module_mgr_add_btn", ImVec2(btnSize.x, 0))) { if (!core::moduleManager.createInstance(modName, modTypes[modTypeId])) { core::moduleManager.postInit(modName);