add extra space for top border when wxDIALOG_UNIT_COMPATIBILITY == 1 too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -194,12 +194,8 @@ void wxStaticBox::GetBordersForSizer(int *borderTop, int *borderOther) const
|
||||
{
|
||||
wxStaticBoxBase::GetBordersForSizer(borderTop, borderOther);
|
||||
|
||||
// if not using correct (but backwards cojmpatible) text metrics
|
||||
// calculations, we need to add some extra margin or otherwise static box
|
||||
// title is clipped
|
||||
#if !wxDIALOG_UNIT_COMPATIBILITY
|
||||
// need extra space, don't know how much but this seems to be enough
|
||||
*borderTop += GetCharHeight()/3;
|
||||
#endif // !wxDIALOG_UNIT_COMPATIBILITY
|
||||
}
|
||||
|
||||
// MSWGetRegionWithoutSelf helper: removes the given rectangle from region
|
||||
|
Reference in New Issue
Block a user