Add frame window monitor display index compare with saved dialog and centre it if display changed which caused dialog disapper
This commit is contained in:
parent
4defa6b58f
commit
530b72972d
|
@ -292,6 +292,14 @@ bool DIALOG_SHIM::Show( bool show )
|
||||||
std::max( wxDialog::GetSize().y, savedDialogRect.GetSize().y ),
|
std::max( wxDialog::GetSize().y, savedDialogRect.GetSize().y ),
|
||||||
0 );
|
0 );
|
||||||
}
|
}
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
if( m_parent != nullptr )
|
||||||
|
{
|
||||||
|
if( wxDisplay::GetFromPoint( m_parent->GetPosition() )
|
||||||
|
!= wxDisplay::GetFromPoint( savedDialogRect.GetPosition() ) )
|
||||||
|
Centre();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if( m_initialSize != wxDefaultSize )
|
else if( m_initialSize != wxDefaultSize )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue