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:
parent
51bfc68423
commit
c19e53e75e
@ -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) )
|
||||
|
Loading…
Reference in New Issue
Block a user