X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0e6c0513862fc9a33e5800526058193b7492d8b..92a4e4de68d3bcc812c01b853c1a8d0f6ddadab6:/src/mac/classic/stattext.cpp 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() ); } }