X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/943b730f1f696969e91b21b1f4160dcfc1ff9a9c..adb799d6ef8e1ba754ab08b26e64fa40219f95f8:/src/mac/carbon/stattext.cpp diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index 3536eb11e9..e2bd22ed23 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -92,7 +92,10 @@ void wxStaticText::SetLabel(const wxString& st ) &ref ); if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) ) + { SetSize( GetBestSize() ) ; + SetSizeHints(GetSize()); + } Update() ; } @@ -104,7 +107,10 @@ bool wxStaticText::SetFont(const wxFont& font) if ( ret ) { if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) ) + { SetSize( GetBestSize() ); + SetSizeHints(GetSize()); + } } return ret;