diff --git a/src/common/statboxcmn.cpp b/src/common/statboxcmn.cpp index c8427783f3..4db934146a 100644 --- a/src/common/statboxcmn.cpp +++ b/src/common/statboxcmn.cpp @@ -42,7 +42,15 @@ void wxStaticBoxBase::GetBordersForSizer(int *borderTop, int *borderOther) const { const int BORDER = FromDIP(5); // FIXME: hardcoded value - *borderTop = GetLabel().empty() ? BORDER : GetCharHeight(); + if ( m_labelWin ) + { + *borderTop = m_labelWin->GetSize().y; + } + else + { + *borderTop = GetLabel().empty() ? BORDER : GetCharHeight(); + } + *borderOther = BORDER; }