mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 11:55:58 +08:00
Linux specific: KBShortcutsDialog: Added workaround to correct pages layout
#SPE-1372
This commit is contained in:
parent
2047002e3c
commit
624c4d5aa1
@ -53,6 +53,15 @@ KBShortcutsDialog::KBShortcutsDialog()
|
|||||||
SetSizer(main_sizer);
|
SetSizer(main_sizer);
|
||||||
main_sizer->SetSizeHints(this);
|
main_sizer->SetSizeHints(this);
|
||||||
this->CenterOnParent();
|
this->CenterOnParent();
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
// workaround to correct pages layout
|
||||||
|
book->Bind(wxEVT_NOTEBOOK_PAGE_CHANGED, [book](wxBookCtrlEvent& e) {
|
||||||
|
book->GetPage(e.GetSelection())->Fit();
|
||||||
|
});
|
||||||
|
const wxSize sz = this->GetBestSize();
|
||||||
|
this->SetSize(sz.x + 1, sz.y);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void KBShortcutsDialog::on_dpi_changed(const wxRect& suggested_rect)
|
void KBShortcutsDialog::on_dpi_changed(const wxRect& suggested_rect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user