]> git.saurik.com Git - wxWidgets.git/commitdiff
Fit the generic preferences editor dialog to its pages size initially.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:05 +0000 (15:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:05 +0000 (15:08 +0000)
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

src/generic/preferencesg.cpp

index a19cc44d78ab55a4a6fad1e7cbdb7b20399b5d1f..e9b7fbb3a922c44e2be807681495cf35d68adf09 100644 (file)
@@ -159,6 +159,7 @@ public:
     virtual void Show(wxWindow* parent)
     {
         wxScopedPtr<wxDialog> dlg(CreateWindow(parent));
+        dlg->Fit();
         dlg->ShowModal();
     }