git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58525
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// get the size best suited for the window (in fact, minimal
// acceptable size using which it will still look "nice" in
// most situations)
- wxSize GetBestSize() const
- {
- if (m_bestSizeCache.IsFullySpecified())
- return m_bestSizeCache;
- return DoGetBestSize();
- }
+ wxSize GetBestSize() const;
+
void GetBestSize(int *w, int *h) const
{
wxSize s = GetBestSize();
#include "wx/menu.h"
#endif //WX_PRECOMP
+#include "wx/collpane.h"
+
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#endif // wxUSE_DRAG_AND_DROP
return min;
}
+wxSize wxWindowBase::GetBestSize() const
+{
+ if ((!m_windowSizer) && (m_bestSizeCache.IsFullySpecified()))
+ return m_bestSizeCache;
+
+ return DoGetBestSize();
+}
void wxWindowBase::SetMinSize(const wxSize& minSize)
{