Linux specific: KBShortcutsDialog: Added workaround to correct pages layout
#SPE-1372
This commit is contained in:
parent
2047002e3c
commit
624c4d5aa1
1 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,15 @@ KBShortcutsDialog::KBShortcutsDialog()
|
|||
SetSizer(main_sizer);
|
||||
main_sizer->SetSizeHints(this);
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue