Better fix layout of wxSlider labels after changing value range
Commit 0b821adf
did not (always) trigger a call to DoMoveWindow.
See #17093.
This commit is contained in:
@@ -651,7 +651,7 @@ void wxSlider::SetRange(int minValue, int maxValue)
|
||||
|
||||
if ( m_labels )
|
||||
{
|
||||
Move(wxDefaultPosition); // Force a re-layout the labels.
|
||||
Move(wxDefaultPosition, wxSIZE_FORCE); // Force a re-layout the labels.
|
||||
|
||||
// Update the label with the value adjusted by the control as
|
||||
// old value can be out of the new range.
|
||||
|
Reference in New Issue
Block a user