mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
FIX: [STUDIO-1653] login dialog position
Change-Id: Ib73195d55c8bec3e8d5eec4b56489a5c22882de9
This commit is contained in:
parent
9dd1cabef6
commit
ff49a854b2
1 changed files with 1 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue