Hardcode Location of Add Button

Hardcoding it prevents the add button from jumping around when switching between parameters with single-line and multi-line descriptions
This commit is contained in:
Ocraftyone 2024-01-11 06:03:20 -05:00
parent 3252e1c228
commit aef74ab005
No known key found for this signature in database
GPG key ID: 85836ED21AD4D125

View file

@ -86,7 +86,7 @@ EditGCodeDialog::EditGCodeDialog(wxWindow* parent, const std::string& key, const
wxGetApp().UpdateDarkUI(m_gcode_editor); wxGetApp().UpdateDarkUI(m_gcode_editor);
grid_sizer->Add(param_sizer, 1, wxEXPAND); grid_sizer->Add(param_sizer, 1, wxEXPAND);
grid_sizer->Add(m_add_btn, 0, wxALIGN_CENTER_VERTICAL); grid_sizer->Add(m_add_btn, 0, wxTOP, m_params_list->GetSize().y/2);
grid_sizer->Add(m_gcode_editor, 2, wxEXPAND); grid_sizer->Add(m_gcode_editor, 2, wxEXPAND);
grid_sizer->AddGrowableRow(0, 1); grid_sizer->AddGrowableRow(0, 1);