diff options
Diffstat (limited to 'src/controls/Slider.qml')
-rw-r--r-- | src/controls/Slider.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml index 14d8566d..dbf67a26 100644 --- a/src/controls/Slider.qml +++ b/src/controls/Slider.qml @@ -175,8 +175,11 @@ Control { /*! \internal */ property bool __horizontal: orientation === Qt.Horizontal - /*! \internal */ - property real __handlePos: range.valueForPosition(__horizontal ? fakeHandle.x : fakeHandle.y) + /*! \internal + The extra arguments positionAtMinimum and positionAtMaximum are there to force + re-evaluation of the handle position when the constraints change (QTBUG-41255). + */ + property real __handlePos: range.valueForPosition(__horizontal ? fakeHandle.x : fakeHandle.y, range.positionAtMinimum, range.positionAtMaximum) activeFocusOnTab: true |