Center paged dialog after lazy-loading first page.

This commit is contained in:
Jeff Young 2023-08-15 12:55:40 +01:00
parent 460e609619
commit f28d29ce1a
2 changed files with 3 additions and 2 deletions

View File

@ -261,7 +261,10 @@ bool DIALOG_SHIM::Show( bool show )
}
}
else if( m_initialSize != wxDefaultSize )
{
SetSize( m_initialSize );
Centre();
}
// Be sure that the dialog appears in a visible area
// (the dialog position might have been stored at the time when it was

View File

@ -159,8 +159,6 @@ void PAGED_DIALOG::finishInitialization()
m_treebook->Fit();
finishDialogSettings();
Centre( wxBOTH );
}