mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-15 08:59:39 -07:00
FIX: FanControl the info text display wrap
jira: [STUDIO-12088] Change-Id: Ic6a1d9ea60e85859f412bc65184b0eb085bba5b2 (cherry picked from commit 8dd0cb4901f43bcea062eac893466e58c0c35e7e)
This commit is contained in:
parent
015ac04951
commit
21f9866847
2 changed files with 3 additions and 3 deletions
|
|
@ -640,7 +640,7 @@ FanControlPopupNew::FanControlPopupNew(wxWindow* parent, MachineObject* obj, con
|
|||
m_mode_sizer->Add(m_radio_btn_sizer, 0, wxALIGN_CENTRE_VERTICAL, 0);
|
||||
m_mode_sizer->Add(m_button_refresh, 0, wxALIGN_CENTRE_VERTICAL, 0);
|
||||
m_button_refresh->Hide();
|
||||
m_cooling_text = new wxStaticText(this, wxID_ANY, wxT(""));
|
||||
m_cooling_text = new Label(this);
|
||||
m_cooling_text->SetBackgroundColour(*wxWHITE);
|
||||
|
||||
//Control the show or hide of controls based on id
|
||||
|
|
@ -730,7 +730,7 @@ void FanControlPopupNew::UpdateTips(int model)
|
|||
{
|
||||
auto text = label_text[AIR_DUCT(model)];
|
||||
m_cooling_text->SetLabelText(text);
|
||||
m_cooling_text->Wrap(FromDIP(400));
|
||||
m_cooling_text->Wrap(FromDIP(360));
|
||||
Layout();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@ private:
|
|||
std::map<int, bool> m_duct_ctrl;
|
||||
|
||||
Button* m_button_refresh;
|
||||
wxStaticText* m_cooling_text;
|
||||
Label* m_cooling_text;
|
||||
MachineObject *m_obj{nullptr};
|
||||
|
||||
std::string m_strong_str = "Strong string ...wait fill";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue