mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-22 12:45:17 +00:00
Update Plater.cpp
This commit is contained in:
@@ -2128,7 +2128,7 @@ Sidebar::Sidebar(Plater *parent)
|
|||||||
|
|
||||||
// ORCA use a height with user preference
|
// ORCA use a height with user preference
|
||||||
int filament_count_user = std::stoi(wxGetApp().app_config->get("filaments_area_preferred_count"));
|
int filament_count_user = std::stoi(wxGetApp().app_config->get("filaments_area_preferred_count"));
|
||||||
p->filament_area_height = std::ceil(filament_count_user * 0.5) * (p->combos_filament[0]->GetSize().GetHeight() + FromDIP(SidebarProps::ElementSpacing())) - FromDIP(SidebarProps::ElementSpacing());
|
p->filament_area_height = std::ceil(filament_count_user * 0.5) * (p->combos_filament[0]->GetSize().GetHeight() + FromDIP(4));
|
||||||
p->m_panel_filament_content->SetMaxSize(wxSize{-1, p->filament_area_height}); // ORCA
|
p->m_panel_filament_content->SetMaxSize(wxSize{-1, p->filament_area_height}); // ORCA
|
||||||
|
|
||||||
//bSizer_filament_content->Add(p->sizer_filaments, 1, wxALIGN_CENTER | wxALL);
|
//bSizer_filament_content->Add(p->sizer_filaments, 1, wxALIGN_CENTER | wxALL);
|
||||||
|
|||||||
Reference in New Issue
Block a user