From 381d7e6c2ebdaf422e6217f2def0a3092ef588f8 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 26 Nov 2019 12:50:57 +0100 Subject: [PATCH] ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE -> Attempt to fix sliders size, on Mac, into imgui dialog for adaptive layers --- src/slic3r/GUI/GLCanvas3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index c67604603..ef2d814a1 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -289,7 +289,7 @@ void GLCanvas3D::LayersEditing::render_overlay(const GLCanvas3D& canvas) const ImGui::SetCursorPosX(text_align); imgui.text(_(L("Radius"))); ImGui::SameLine(); - ImGui::PushItemWidth(120.0f); + ImGui::PushItemWidth(imgui.get_style_scaling() * 120.0f); ImGui::SetCursorPosX(widget_align); int radius = (int)m_smooth_params.radius; if (ImGui::SliderInt("##1", &radius, 1, 10)) @@ -298,7 +298,7 @@ void GLCanvas3D::LayersEditing::render_overlay(const GLCanvas3D& canvas) const ImGui::SetCursorPosX(text_align); imgui.text(_(L("Keep min"))); ImGui::SameLine(); - ImGui::PushItemWidth(120.0f); + ImGui::PushItemWidth(imgui.get_style_scaling() * 120.0f); ImGui::SetCursorPosX(widget_align); imgui.checkbox("##2", m_smooth_params.keep_min);