From 1098bb8bafb630d99378bef2998d2835f57f20d4 Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Tue, 20 May 2025 12:08:53 +0800 Subject: [PATCH] FIX: update the sizer policy jira: [STUDIO-12294] Change-Id: I549f5fcb0df426428650785e3e47468f3caef077 (cherry picked from commit c95a900a09cfac7e031b7cbcb0712b2b9734b1e0) --- src/slic3r/GUI/StatusPanel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 1c7f5aae08..99c9deaca0 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -883,6 +883,8 @@ void PrintingTaskPanel::create_panel(wxWindow* parent) for (int i = 0; i < m_score_star.size(); ++i) { m_score_star[i] = new ScalableButton(m_score_subtask_info, wxID_ANY, "score_star_dark", wxEmptyString, wxSize(FromDIP(26), FromDIP(26)), wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true, 26); + m_score_star[i]->SetMinSize(wxSize(FromDIP(26), FromDIP(26))); + m_score_star[i]->SetMaxSize(wxSize(FromDIP(26), FromDIP(26))); m_score_star[i]->Bind(wxEVT_LEFT_DOWN, [this, i](auto &e) { for (int j = 0; j < m_score_star.size(); ++j) { ScalableBitmap light_star = ScalableBitmap(nullptr, "score_star_light", 26); @@ -899,7 +901,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent) m_star_count_dirty = true; m_button_market_scoring->Enable(true); }); - static_score_star_sizer->Add(m_score_star[i], 0, wxEXPAND | wxLEFT, FromDIP(10)); + static_score_star_sizer->Add(m_score_star[i], 1, wxEXPAND | wxLEFT, FromDIP(5)); } m_button_market_scoring = new Button(m_score_subtask_info, _L("Rate"));