]> git.saurik.com Git - wxWidgets.git/commitdiff
best size taking into account borders
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Aug 2004 18:20:38 +0000 (18:20 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 4 Aug 2004 18:20:38 +0000 (18:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/stattext.cpp

index f21e1a9ee8b17fb1656eb533db6764e521aa4501..16e9aca2fb5d4d8e3bd5fc0c71cc94abbf7d1f97 100644 (file)
@@ -78,6 +78,9 @@ wxSize wxStaticText::DoGetBestSize() const
     }
     if ( m_label.Length() == 0 )
         bounds.h = 0 ;
+        
+    bounds.h += MacGetLeftBorderSize() + MacGetRightBorderSize() ;
+    bounds.v += MacGetTopBorderSize() + MacGetBottomBorderSize() ;    
     return wxSize(bounds.h, bounds.v);
 }