From c19e53e75e61134d8ef478a2316eef87e915f37c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 16 Jan 2018 16:27:17 +0100 Subject: [PATCH] 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 --- src/common/stattextcmn.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/common/stattextcmn.cpp b/src/common/stattextcmn.cpp index aaa61e87ec..a83d937246 100644 --- a/src/common/stattextcmn.cpp +++ b/src/common/stattextcmn.cpp @@ -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) )