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:
Maarten Bent
2019-01-31 20:22:27 +01:00
parent 5eaea0e43f
commit 9f9bc40f83

View File

@@ -651,7 +651,7 @@ void wxSlider::SetRange(int minValue, int maxValue)
if ( m_labels ) 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 // Update the label with the value adjusted by the control as
// old value can be out of the new range. // old value can be out of the new range.