X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2fc40b4786f7ae8c255ce1184441bd94d9554a0..f8b1df0b15f843b8f47efb9bee38f1de0fa95020:/src/palmos/dialog.cpp diff --git a/src/palmos/dialog.cpp b/src/palmos/dialog.cpp index 32535b9bca..c368c78f56 100644 --- a/src/palmos/dialog.cpp +++ b/src/palmos/dialog.cpp @@ -168,6 +168,9 @@ wxWindow *wxDialog::FindSuitableParent() const bool wxDialog::Show(bool show) { + if (show && CanDoLayoutAdaptation()) + DoLayoutAdaptation(); + return wxTopLevelWindowPalm::Show (show); } @@ -178,6 +181,9 @@ void wxDialog::Raise() // show dialog modally int wxDialog::ShowModal() { + if (show && CanDoLayoutAdaptation()) + DoLayoutAdaptation(); + if (errNone == FrmDoDialog ((FormType *)wxTopLevelWindow::GetForm())) { return 0; }