Account for label window in wxStaticBoxBase::GetBordersForSizer()
Take the window used as label into account in the default implementation of this method.
This commit is contained in:
@@ -42,7 +42,15 @@ void wxStaticBoxBase::GetBordersForSizer(int *borderTop, int *borderOther) const
|
|||||||
{
|
{
|
||||||
const int BORDER = FromDIP(5); // FIXME: hardcoded value
|
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;
|
*borderOther = BORDER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user