MSW specific issue: Fixed scaling of the Tabs when They are in the separated dialog
This commit is contained in:
parent
7e88e20402
commit
f78f5c85be
1 changed files with 7 additions and 2 deletions
|
@ -561,8 +561,9 @@ void MainFrame::on_dpi_changed(const wxRect &suggested_rect)
|
||||||
wxGetApp().plater()->msw_rescale();
|
wxGetApp().plater()->msw_rescale();
|
||||||
|
|
||||||
// update Tabs
|
// update Tabs
|
||||||
for (auto tab : wxGetApp().tabs_list)
|
if (m_layout != slDlg) // Update tabs later, from the SettingsDialog, when the Settings are in the separated dialog
|
||||||
tab->msw_rescale();
|
for (auto tab : wxGetApp().tabs_list)
|
||||||
|
tab->msw_rescale();
|
||||||
|
|
||||||
wxMenuBar* menu_bar = this->GetMenuBar();
|
wxMenuBar* menu_bar = this->GetMenuBar();
|
||||||
for (size_t id = 0; id < menu_bar->GetMenuCount(); id++)
|
for (size_t id = 0; id < menu_bar->GetMenuCount(); id++)
|
||||||
|
@ -1531,6 +1532,10 @@ void SettingsDialog::on_dpi_changed(const wxRect& suggested_rect)
|
||||||
const int& em = em_unit();
|
const int& em = em_unit();
|
||||||
const wxSize& size = wxSize(85 * em, 50 * em);
|
const wxSize& size = wxSize(85 * em, 50 * em);
|
||||||
|
|
||||||
|
// update Tabs
|
||||||
|
for (auto tab : wxGetApp().tabs_list)
|
||||||
|
tab->msw_rescale();
|
||||||
|
|
||||||
SetMinSize(size);
|
SetMinSize(size);
|
||||||
Fit();
|
Fit();
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|
Loading…
Reference in a new issue