From 5fa9e9fc6b252a60aa24da83cdf26b633991fc39 Mon Sep 17 00:00:00 2001 From: "wenjie.guo" Date: Fri, 8 Dec 2023 10:15:05 +0800 Subject: [PATCH] FIX: Groove text ctrl is not wide engough Jira: STUDIO-5434 Signed-off-by: wenjie.guo Change-Id: I93c0995473a72b5c19bc413c38c090906e360455 (cherry picked from commit e4a8b0ef5e62ba0053dc782c30ea79b237a46ac3) --- src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp index c24acd33a..27bb54632 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoAdvancedCut.cpp @@ -2374,9 +2374,12 @@ bool GLGizmoAdvancedCut::render_slider_double_input(const std::string &label, fl double slider_with = 0.24 * m_editing_window_width; double item_in_gap = 0.01 * m_editing_window_width; double item_out_gap = 0.04 * m_editing_window_width; - double first_input_width = 0.29 * m_editing_window_width; - double second_input_width = 0.29 * m_editing_window_width; - + double first_input_width = 0.37 * m_editing_window_width; + double second_input_width = 0.37 * m_editing_window_width; +#ifdef __APPLE__ + first_input_width = 0.5 * m_editing_window_width; + second_input_width = 0.5 * m_editing_window_width; +#endif ImGui::AlignTextToFramePadding(); m_imgui->text(label); ImGui::SameLine(m_label_width);