FIX: [STUDIO-1653] login dialog position

Change-Id: Ib73195d55c8bec3e8d5eec4b56489a5c22882de9
This commit is contained in:
chunmao.guo 2022-12-12 17:26:28 +08:00 committed by Lane.Wei
parent 9dd1cabef6
commit ff49a854b2

View file

@ -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 = "";