Fix Preferences dialog sizing on multi monitor setups (#5820)
This commit is contained in:
parent
83a9b2513a
commit
c08126703c
1 changed files with 1 additions and 1 deletions
|
@ -1004,7 +1004,7 @@ void PreferencesDialog::create()
|
|||
SetSizer(main_sizer);
|
||||
Layout();
|
||||
Fit();
|
||||
int screen_height = wxGetDisplaySize().GetY();
|
||||
int screen_height = wxDisplay(m_parent).GetClientArea().GetHeight();
|
||||
if (this->GetSize().GetY() > screen_height)
|
||||
this->SetSize(this->GetSize().GetX() + FromDIP(40), screen_height * 4 / 5);
|
||||
|
||||
|
|
Loading…
Reference in a new issue