mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix Preferences dialog sizing on multi monitor setups (#5820)
This commit is contained in:
@@ -1004,7 +1004,7 @@ void PreferencesDialog::create()
|
|||||||
SetSizer(main_sizer);
|
SetSizer(main_sizer);
|
||||||
Layout();
|
Layout();
|
||||||
Fit();
|
Fit();
|
||||||
int screen_height = wxGetDisplaySize().GetY();
|
int screen_height = wxDisplay(m_parent).GetClientArea().GetHeight();
|
||||||
if (this->GetSize().GetY() > screen_height)
|
if (this->GetSize().GetY() > screen_height)
|
||||||
this->SetSize(this->GetSize().GetX() + FromDIP(40), screen_height * 4 / 5);
|
this->SetSize(this->GetSize().GetX() + FromDIP(40), screen_height * 4 / 5);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user