diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 7310b9158a..4bbf12d12a 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -67,8 +67,9 @@ public: SetHint(_("Search")); - // remove the default minsize, the searchctrl will have one instead - SetSizeHints(wxDefaultCoord,wxDefaultCoord); + // Ensure that our best size is recomputed using our overridden + // DoGetBestSize(). + InvalidateBestSize(); }