diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 30dc010510..2fd67dfa38 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -213,7 +213,7 @@ wxWindowBase::wxWindowBase() bool wxWindowBase::CreateBase(wxWindowBase *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), - const wxSize& WXUNUSED(size), + const wxSize& size, long style, const wxString& name) { @@ -239,6 +239,11 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent, // flags by updating the window dynamically and we don't need this here m_windowStyle = style; + // assume the user doesn't want this window to shrink beneath its initial + // size, this worked like this in wxWidgets 2.8 and before and generally + // often makes sense + SetMinSize(size); + SetName(name); SetParent(parent);