diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2019-10-28 11:59:30 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2019-10-28 11:59:30 +0300 |
commit | d59a343b3f4020e2ff9742376378d143b4f59ad3 (patch) | |
tree | 09292ec69dd28091bd2abbe377adae8d8356cd3d /plugins/SimulationView | |
parent | 9430d05cac522fb1953cb134cf603bcd4db6ad6c (diff) |
Update simulation slider handle position after width change
CURA-6874
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/PathSlider.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/SimulationView/PathSlider.qml b/plugins/SimulationView/PathSlider.qml index c7a43c6407..facdbb6a53 100644 --- a/plugins/SimulationView/PathSlider.qml +++ b/plugins/SimulationView/PathSlider.qml @@ -56,6 +56,11 @@ Item return Math.min(Math.max(value, sliderRoot.minimumValue), sliderRoot.maximumValue) } + onWidthChanged : { + // After a width change, the pixel-position of the handle is out of sync with the property value + setHandleValue(handleValue) + } + // slider track Rectangle { |