]> git.saurik.com Git - wxWidgets.git/commitdiff
add extra space for top border when wxDIALOG_UNIT_COMPATIBILITY == 1 too
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Apr 2005 22:23:50 +0000 (22:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Apr 2005 22:23:50 +0000 (22:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbox.cpp

index a67845a861604eac9f9c87d91a2c25dff5656bc5..441dd5147f8416d38a622c408b6aa55bbf650131 100644 (file)
@@ -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