mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 00:07:52 -06:00
ObjectList: Smart update of the min height in respect to the items count.
Min 7 items and max 15 items
This commit is contained in:
parent
40fb39f5e1
commit
0331bcefd9
2 changed files with 29 additions and 10 deletions
|
@ -197,6 +197,8 @@ private:
|
|||
SettingsBundle m_freq_settings_sla;
|
||||
#endif
|
||||
|
||||
size_t m_items_count { size_t(-1) };
|
||||
|
||||
inline void ensure_current_item_visible()
|
||||
{
|
||||
if (const auto &item = this->GetCurrentItem())
|
||||
|
@ -208,6 +210,7 @@ public:
|
|||
~ObjectList();
|
||||
|
||||
void set_min_height();
|
||||
void update_min_height();
|
||||
|
||||
std::map<std::string, wxBitmap> CATEGORY_ICON;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue