Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNino van Hooff <ninovanhooff@gmail.com>2019-10-28 11:59:30 +0300
committerNino van Hooff <ninovanhooff@gmail.com>2019-10-28 11:59:30 +0300
commitd59a343b3f4020e2ff9742376378d143b4f59ad3 (patch)
tree09292ec69dd28091bd2abbe377adae8d8356cd3d /plugins/SimulationView
parent9430d05cac522fb1953cb134cf603bcd4db6ad6c (diff)
Update simulation slider handle position after width change
CURA-6874
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r--plugins/SimulationView/PathSlider.qml5
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
{