From ea0fabb19abcbe309092f060701f3407c0445c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 2 Apr 2008 09:36:53 +0000 Subject: [PATCH] changing label invalidates best size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/stattext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index b3de46da61..5ee5278bc0 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -124,7 +124,10 @@ void wxStaticText::SetLabel( const wxString &label ) // adjust the label size to the new label unless disabled if ( !HasFlag(wxST_NO_AUTORESIZE) ) + { + InvalidateBestSize(); SetSize( GetBestSize() ); + } } bool wxStaticText::SetFont( const wxFont &font )