Don't move the slider's value label if it's not being used.
An if statement was missing brackets and still moving the value label. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -465,11 +465,13 @@ void wxSlider::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
holdBottomWidth, labelHeight);
|
holdBottomWidth, labelHeight);
|
||||||
}
|
}
|
||||||
if ( HasFlag(wxSL_VALUE_LABEL) )
|
if ( HasFlag(wxSL_VALUE_LABEL) )
|
||||||
|
{
|
||||||
labelOffset = longestLabelWidth + HGAP;
|
labelOffset = longestLabelWidth + HGAP;
|
||||||
DoMoveSibling((HWND)(*m_labels)[SliderLabel_Value],
|
DoMoveSibling((HWND)(*m_labels)[SliderLabel_Value],
|
||||||
x,
|
x,
|
||||||
y + (height - labelHeight)/2,
|
y + (height - labelHeight)/2,
|
||||||
longestLabelWidth, labelHeight);
|
longestLabelWidth, labelHeight);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// position the slider itself along the left/right edge
|
// position the slider itself along the left/right edge
|
||||||
|
Reference in New Issue
Block a user