FIX:use CenterOnScreen replace CenterOnParent
jira: STUDIO-10464 Change-Id: Id42393565c5ac9d95e8d7139d3209d0fdef215ed
This commit is contained in:
parent
fceb5ec5aa
commit
d244cfdae2
|
@ -35,6 +35,7 @@ wxDEFINE_EVENT(EVT_PRINT_JOB_CANCEL, wxCommandEvent);
|
||||||
#define SYNC_FLEX_GRID_COL 7
|
#define SYNC_FLEX_GRID_COL 7
|
||||||
bool SyncAmsInfoDialog::Show(bool show)
|
bool SyncAmsInfoDialog::Show(bool show)
|
||||||
{
|
{
|
||||||
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " SyncAmsInfoDialog begin show";
|
||||||
if (show) {
|
if (show) {
|
||||||
if (m_options_other) { m_options_other->Hide(); }
|
if (m_options_other) { m_options_other->Hide(); }
|
||||||
if (m_refresh_timer) { m_refresh_timer->Start(LIST_REFRESH_INTERVAL); }
|
if (m_refresh_timer) { m_refresh_timer->Start(LIST_REFRESH_INTERVAL); }
|
||||||
|
@ -89,7 +90,9 @@ bool SyncAmsInfoDialog::Show(bool show)
|
||||||
m_scrolledWindow->Scroll(0, 0);
|
m_scrolledWindow->Scroll(0, 0);
|
||||||
Layout();
|
Layout();
|
||||||
Fit();
|
Fit();
|
||||||
CenterOnParent();
|
CenterOnScreen();
|
||||||
|
|
||||||
|
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " SyncAmsInfoDialog finish show";
|
||||||
return DPIDialog::Show(show);
|
return DPIDialog::Show(show);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue