Don't skip wxStaticText auto-resizing if it's ellipsized

There doesn't seem to be any good reason for this, as it's perfectly
possible to use ellipsize the text if it's too long to fit even when the
control is resized to its maximal extent, but still allow the control to
resize in the first place.

See https://groups.google.com/d/msg/wx-dev/58xFP4FIxXc/d5lj6901CQAJ
This commit is contained in:
Vadim Zeitlin 2018-01-16 16:27:17 +01:00
parent 51bfc68423
commit c19e53e75e

View File

@ -210,9 +210,6 @@ void wxStaticTextBase::AutoResizeIfNecessary()
// any more.
InvalidateBestSize();
if ( IsEllipsized() ) // if ellipsize is ON, then we don't want to get resized!
return;
// This flag is specifically used to prevent the control from resizing even
// when its label changes.
if ( HasFlag(wxST_NO_AUTORESIZE) )