best size taking into account borders

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2004-08-04 18:20:38 +00:00
parent 78727daa23
commit d5375d25c7

View 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);
}