X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15f37147958a61adb54e0d64c82dc7b93c1f1cbe..477618ea0cd71cbe8781e8d5823b3546eabd0d1a:/src/cocoa/dialog.mm diff --git a/src/cocoa/dialog.mm b/src/cocoa/dialog.mm index 1f412b0a33..9c2be1a64f 100644 --- a/src/cocoa/dialog.mm +++ b/src/cocoa/dialog.mm @@ -99,6 +99,10 @@ bool wxDialog::Show(bool show) if(show) { wxAutoNSAutoreleasePool pool; + + if (CanDoLayoutAdaptation()) + DoLayoutAdaptation(); + InitDialog(); if(IsModal()) { // ShowModal() will show the dialog