fixed calendar control height calculation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-05-25 13:35:22 +00:00
parent 89a0a3220b
commit 226ee02213

View File

@ -472,10 +472,9 @@ wxSize wxCalendarCtrl::DoGetBestSize() const
wxCoord width = 7*m_widthCol,
height = 7*m_heightRow;
wxSize sizeCombo = m_comboMonth->GetBestSize(),
sizeSpin = m_spinYear->GetBestSize();
height += VERT_MARGIN + wxMax(sizeCombo.y, sizeSpin.y);
// the combobox doesn't report its height correctly (it returns the
// height including the drop down list) so don't use it
height += VERT_MARGIN + m_spinYear->GetBestSize().y;
if ( GetWindowStyle() & (wxRAISED_BORDER | wxSUNKEN_BORDER) )
{