mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-12 08:14:26 +00:00
Custom controls : The width for full_width fields is updated according to the custom control width
(thanks to the @supermerill for the mention on it, https://github.com/prusa3d/PrusaSlicer/pull/5135/commits/6acf6bdf2110b3a8b7c54a0450ae1437176d2027) + Deleted redundant background color, as mentioned in the #5062
This commit is contained in:
@@ -296,11 +296,7 @@ void OptionsGroup::activate_line(Line& line)
|
||||
const auto& option = option_set.front();
|
||||
const auto& field = build_field(option);
|
||||
|
||||
if (custom_ctrl) {
|
||||
if (is_window_field(field) && option.opt.full_width)
|
||||
field->getWindow()->SetSize(wxSize(3 * Field::def_width_wider() * wxGetApp().em_unit(), -1));
|
||||
}
|
||||
else {
|
||||
if (!custom_ctrl) {
|
||||
if (is_window_field(field))
|
||||
sizer->Add(field->getWindow(), option.opt.full_width ? 1 : 0,
|
||||
wxBOTTOM | wxTOP | (option.opt.full_width ? wxEXPAND : wxALIGN_CENTER_VERTICAL), (wxOSX || !staticbox) ? 0 : 2);
|
||||
|
||||
Reference in New Issue
Block a user