From ff49a854b224d70fe0e987049925058626236523 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Mon, 12 Dec 2022 17:26:28 +0800 Subject: [PATCH] FIX: [STUDIO-1653] login dialog position Change-Id: Ib73195d55c8bec3e8d5eec4b56489a5c22882de9 --- src/slic3r/GUI/WebUserLoginDialog.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/slic3r/GUI/WebUserLoginDialog.cpp b/src/slic3r/GUI/WebUserLoginDialog.cpp index e6a7a3757f..e1ef014e9e 100644 --- a/src/slic3r/GUI/WebUserLoginDialog.cpp +++ b/src/slic3r/GUI/WebUserLoginDialog.cpp @@ -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 = "";