mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
Update simulation slider handle position after width change
CURA-6874
This commit is contained in:
parent
9430d05cac
commit
d59a343b3f
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ Item
|
||||||
return Math.min(Math.max(value, sliderRoot.minimumValue), sliderRoot.maximumValue)
|
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
|
// slider track
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue