mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 06:45:54 +08:00
Fix Preferences dialog sizing on multi monitor setups (#5820)
This commit is contained in:
parent
83a9b2513a
commit
c08126703c
@ -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…
x
Reference in New Issue
Block a user