ENH: enhance render assembly combox

jira: none
Change-Id: I84d83a8baf639ae609247928c457d6363bb84dc3
This commit is contained in:
zhou.xu 2024-04-23 12:27:48 +08:00 committed by Lane.Wei
parent f525c6ae35
commit 50ccc926f5
1 changed files with 2 additions and 2 deletions

View File

@ -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();