X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3fc616c075aef032dbb21400690e9cf6760b430..cd560c961a09a8ae80b9c32856e195ed784cc547:/src/univ/dialog.cpp?ds=sidebyside diff --git a/src/univ/dialog.cpp b/src/univ/dialog.cpp index 6b42e73d02..cf1d19793b 100644 --- a/src/univ/dialog.cpp +++ b/src/univ/dialog.cpp @@ -153,6 +153,18 @@ bool wxDialog::Show(bool show) EndModal(wxID_CANCEL); } + // Not sure how to put this in platform-specific + // code just yet. Nano-X has to force a size event, + // else there's no initial size. +#if wxUSE_NANOX + if (show) + { + wxSizeEvent event(GetSize(), GetId()); + event.SetEventObject(this); + GetEventHandler()->ProcessEvent(event); + } +#endif + bool ret = wxDialogBase::Show(show); if ( show )