we need to leave some space for static box border even if its label is empty

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-04-05 21:15:25 +00:00
parent b45f79ecbf
commit 8397b2f7a9

View File

@ -198,8 +198,7 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
// calculations, we need to add some extra margin or otherwise static box
// title is clipped
#if !wxDIALOG_UNIT_COMPATIBILITY
if ( !GetLabel().empty() )
*borderTop += GetCharHeight()/3;
*borderTop += GetCharHeight()/3;
#endif // !wxDIALOG_UNIT_COMPATIBILITY
}