From: Vadim Zeitlin Date: Sat, 9 Mar 2013 15:08:05 +0000 (+0000) Subject: Fit the generic preferences editor dialog to its pages size initially. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/06a32e049c1bad9249079ad2e91659303424a774 Fit the generic preferences editor dialog to its pages size initially. Ensure that the dialog has the appropriate size before showing it. In addition to making it big enough to fit the pages contents, this also fixes a problem with initial appearance under MSW. Closes #15092. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/preferencesg.cpp b/src/generic/preferencesg.cpp index a19cc44d78..e9b7fbb3a9 100644 --- a/src/generic/preferencesg.cpp +++ b/src/generic/preferencesg.cpp @@ -159,6 +159,7 @@ public: virtual void Show(wxWindow* parent) { wxScopedPtr dlg(CreateWindow(parent)); + dlg->Fit(); dlg->ShowModal(); }