added GetWindowSizeForVirtualSize() virtual hook for wxScrolledWindow (cuts down on code duplication in its DoGetBestSize())

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-10-10 18:15:34 +00:00
parent bcaab0f92e
commit ee146bca1b
2 changed files with 9 additions and 1 deletions

View File

@@ -579,7 +579,7 @@ wxSize wxWindowBase::DoGetBestSize() const
if ( m_windowSizer )
{
best = m_windowSizer->GetMinSize();
best = GetWindowSizeForVirtualSize(m_windowSizer->GetMinSize());
}
#if wxUSE_CONSTRAINTS
else if ( m_constraints )