mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-18 04:35:54 +08:00
FIX: [STUDIO-1653] login dialog position
Change-Id: Ib73195d55c8bec3e8d5eec4b56489a5c22882de9
This commit is contained in:
parent
9dd1cabef6
commit
ff49a854b2
@ -104,12 +104,7 @@ ZUserLogin::ZUserLogin() : wxDialog((wxWindow *) (wxGetApp().mainframe), wxID_AN
|
||||
wxSize pSize = FromDIP(wxSize(650, 840));
|
||||
SetSize(pSize);
|
||||
|
||||
//CenterOnParent();
|
||||
int screenheight = wxSystemSettings::GetMetric(wxSYS_SCREEN_Y, NULL);
|
||||
int screenwidth = wxSystemSettings::GetMetric(wxSYS_SCREEN_X, NULL);
|
||||
int MaxY = (screenheight - pSize.y) > 0 ? (screenheight - pSize.y) / 2 : 0;
|
||||
|
||||
this->SetPosition(wxPoint((screenwidth - pSize.x) / 2, MaxY));
|
||||
CenterOnParent();
|
||||
|
||||
//Param
|
||||
m_AutotestToken = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user