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:
@@ -124,7 +124,10 @@ void wxStaticText::SetLabel( const wxString &label )
|
|||||||
|
|
||||||
// adjust the label size to the new label unless disabled
|
// adjust the label size to the new label unless disabled
|
||||||
if ( !HasFlag(wxST_NO_AUTORESIZE) )
|
if ( !HasFlag(wxST_NO_AUTORESIZE) )
|
||||||
|
{
|
||||||
|
InvalidateBestSize();
|
||||||
SetSize( GetBestSize() );
|
SetSize( GetBestSize() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxStaticText::SetFont( const wxFont &font )
|
bool wxStaticText::SetFont( const wxFont &font )
|
||||||
|
Reference in New Issue
Block a user