mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 22:16:19 +08:00
FIX: update the sizer policy
jira: [STUDIO-12294] Change-Id: I549f5fcb0df426428650785e3e47468f3caef077
This commit is contained in:
parent
3b3042884e
commit
c95a900a09
@ -891,6 +891,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);
|
||||
@ -907,7 +909,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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user