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
This commit is contained in:
parent
17beda75ef
commit
06a32e049c
@ -159,6 +159,7 @@ public:
|
|||||||
virtual void Show(wxWindow* parent)
|
virtual void Show(wxWindow* parent)
|
||||||
{
|
{
|
||||||
wxScopedPtr<wxDialog> dlg(CreateWindow(parent));
|
wxScopedPtr<wxDialog> dlg(CreateWindow(parent));
|
||||||
|
dlg->Fit();
|
||||||
dlg->ShowModal();
|
dlg->ShowModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user