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
This commit is contained in:
Václav Slavík
2008-04-02 09:36:53 +00:00
parent 5ca19fa62c
commit ea0fabb19a

View File

@@ -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 )