From 50ccc926f5d2e2f736743f198a6848dee4e52c28 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Tue, 23 Apr 2024 12:27:48 +0800 Subject: [PATCH] ENH: enhance render assembly combox jira: none Change-Id: I84d83a8baf639ae609247928c457d6363bb84dc3 --- src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp b/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp index c0c86b1ac..2fcdd3a21 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoAssembly.cpp @@ -85,9 +85,9 @@ void GLGizmoAssembly::on_render_input_window(float x, float y, float bottom_limi init_render_input_window(); float moving_size = m_imgui->calc_text_size(_L("(Moving)")).x; - float combox_content_size = (m_imgui->calc_text_size(_L("Point and point assembly")).x +ImGui::GetStyle().FramePadding.x * 2.0f); + float combox_content_size = m_imgui->calc_text_size(_L("Point and point assembly")).x*1.1 + ImGui::GetStyle().FramePadding.x * 18.0f; float caption_size = moving_size + 2 * m_space_size; - if (render_assembly_mode_combo(caption_size + 0.5 * m_space_size, 2.0 * combox_content_size)) { + if (render_assembly_mode_combo(caption_size + 0.5 * m_space_size, combox_content_size)) { ; } show_selection_ui();