mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
Fixed a regression that print host is not displayed properly
This commit is contained in:
parent
c787138aa3
commit
87be98955c
1 changed files with 3 additions and 3 deletions
|
@ -1211,7 +1211,7 @@ void Choice::BUILD()
|
||||||
&& m_list == nullptr) {
|
&& m_list == nullptr) {
|
||||||
m_is_editable = true;
|
m_is_editable = true;
|
||||||
static Builder<choice_ctrl> builder1;
|
static Builder<choice_ctrl> builder1;
|
||||||
temp = builder1.build(m_parent, wxID_ANY, wxString(""), wxDefaultPosition, wxDefaultSize, 0, nullptr, wxTE_PROCESS_ENTER);
|
temp = builder1.build(m_parent, wxID_ANY, wxString(""), wxDefaultPosition, size, 0, nullptr, wxTE_PROCESS_ENTER);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#ifdef UNDEIFNED__WXOSX__ // __WXOSX__ // BBS
|
#ifdef UNDEIFNED__WXOSX__ // __WXOSX__ // BBS
|
||||||
|
@ -1224,10 +1224,10 @@ void Choice::BUILD()
|
||||||
temp->Create(m_parent, wxID_ANY, wxString(""), wxDefaultPosition, size, 0, nullptr);
|
temp->Create(m_parent, wxID_ANY, wxString(""), wxDefaultPosition, size, 0, nullptr);
|
||||||
#else
|
#else
|
||||||
static Builder<choice_ctrl> builder2;
|
static Builder<choice_ctrl> builder2;
|
||||||
temp = builder2.build(m_parent, wxID_ANY, wxString(""), wxDefaultPosition, wxDefaultSize, 0, nullptr, wxCB_READONLY);
|
temp = builder2.build(m_parent, wxID_ANY, wxString(""), wxDefaultPosition, size, 0, nullptr, wxCB_READONLY);
|
||||||
#endif //__WXOSX__
|
#endif //__WXOSX__
|
||||||
}
|
}
|
||||||
temp->SetSize(size);
|
// temp->SetSize(size);
|
||||||
temp->Clear();
|
temp->Clear();
|
||||||
temp->GetDropDown().SetUseContentWidth(true);
|
temp->GetDropDown().SetUseContentWidth(true);
|
||||||
if (parent_is_custom_ctrl && m_opt.height < 0)
|
if (parent_is_custom_ctrl && m_opt.height < 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue