]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/stattext.cpp
fixing repositioning problem for statusbar
[wxWidgets.git] / 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);
 }