Don't use a cached best size if the window has a sizer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-01-30 20:08:14 +00:00
parent 10b0f4894b
commit 26f7724c4b
2 changed files with 11 additions and 6 deletions

View File

@@ -47,6 +47,8 @@
#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
@@ -720,6 +722,13 @@ wxSize wxWindowBase::GetEffectiveMinSize() const
return min;
}
wxSize wxWindowBase::GetBestSize() const
{
if ((!m_windowSizer) && (m_bestSizeCache.IsFullySpecified()))
return m_bestSizeCache;
return DoGetBestSize();
}
void wxWindowBase::SetMinSize(const wxSize& minSize)
{