From 05c2148b82c45d050f93f993db7b7b8eabc5e9af Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Mon, 5 Jun 2023 09:57:57 +0800 Subject: [PATCH] FIX: [STUDIO-3084] size of full_width field Change-Id: I804b364c2faf0990837c9d4d38110eed9d4f0b49 --- src/slic3r/GUI/OG_CustomCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/OG_CustomCtrl.cpp b/src/slic3r/GUI/OG_CustomCtrl.cpp index 521f5b559..c7ca05a90 100644 --- a/src/slic3r/GUI/OG_CustomCtrl.cpp +++ b/src/slic3r/GUI/OG_CustomCtrl.cpp @@ -826,7 +826,7 @@ void OG_CustomCtrl::CtrlLine::render(wxDC& dc, wxCoord h_pos, wxCoord v_pos) draw_buttons(field); // update width for full_width fields if (option_set.front().opt.full_width && field && field->getWindow()) - field->getWindow()->SetSize(ctrl->GetSize().x - h_pos2 + h_pos3 - h_pos, -1); + field->getWindow()->SetSize(ctrl->GetSize().x - h_pos2 + h_pos3 - h_pos - ctrl->m_em_unit * 3, -1); return; }