mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
Keep Slice and Print Visible When Plugin Page Tabs Overflow (#16541)
This commit is contained in:
1 parent
8b6c074c69
commit
29b6bbb8c9
3 files changed
+11
No files matched your search
@@ -1739,6 +1739,9 @@ void MainFrame::fit_tab_labels()
|
||||
for (size_t i = count - 1; i >= 1; --i) {
|
||||
int right = ScreenToClient(m_slice_option_btn->ClientToScreen({})).x;
|
||||
int left = sizer->GetSize().GetWidth();
|
||||
// The overflow button sits between the tab buttons and the side tools, so it is not free space.
|
||||
if (const wxWindow* overflow = ctrl->GetOverflowButton())
|
||||
left += overflow->GetSize().GetWidth();
|
||||
if (right - left - FromDIP(15) > 0) return;
|
||||
ctrl->SetCompact(i, true);
|
||||
m_tabpanel->Refresh();
|
||||
|
||||
Reference in new issue
Block a user