X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..3b439e60e0119e890ec0040545875ff11352f24a:/src/mac/classic/stattext.cpp?ds=sidebyside diff --git a/src/mac/classic/stattext.cpp b/src/mac/classic/stattext.cpp index 1c0facdbf7..38c4b1041b 100644 --- a/src/mac/classic/stattext.cpp +++ b/src/mac/classic/stattext.cpp @@ -236,6 +236,7 @@ void wxStaticText::SetLabel(const wxString& st ) { // temporary fix until layout measurement and drawing are in synch again Refresh() ; + InvalidateBestSize(); SetSize( GetBestSize() ) ; } Refresh() ; @@ -253,7 +254,8 @@ bool wxStaticText::SetFont(const wxFont& font) if ( !(GetWindowStyle() & wxST_NO_AUTORESIZE) ) { // temporary fix until layout measurement and drawing are in synch again - Refresh() ; + Refresh() ; + InvalidateBestSize(); SetSize( GetBestSize() ); } }