From 9c2a1d53c01e17ff3c35710a0fe0999d9a3832b4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 5 Apr 2005 22:23:50 +0000 Subject: [PATCH] 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 --- src/msw/statbox.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/msw/statbox.cpp b/src/msw/statbox.cpp index a67845a861..441dd5147f 100644 --- a/src/msw/statbox.cpp +++ b/src/msw/statbox.cpp @@ -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 -- 2.45.2