From d5375d25c71a2159792567f358a1f494d0bcbdc8 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 4 Aug 2004 18:20:38 +0000 Subject: [PATCH] best size taking into account borders git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/stattext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index f21e1a9ee8..16e9aca2fb 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -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); } -- 2.47.2