From f090450bba2349bb3b81a713f5d617d7f7316ee6 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Mon, 7 Oct 2019 16:27:25 +0200 Subject: [PATCH] Fix pixel-position of layer slider after the window was resized. CURA-6853 --- plugins/SimulationView/LayerSlider.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/SimulationView/LayerSlider.qml b/plugins/SimulationView/LayerSlider.qml index d2af1e223b..9706b04e03 100644 --- a/plugins/SimulationView/LayerSlider.qml +++ b/plugins/SimulationView/LayerSlider.qml @@ -177,8 +177,8 @@ Item } onHeightChanged : { - print("new height:" + height) - //rangeHandle.onHandleDragged() + // After a height change, the pixel-position of the lower handle is out of sync with the property value + setLowerValue(lowerValue) } // Upper handle @@ -338,7 +338,7 @@ Item // set the slider position based on the lower value function setValue(value) { - + print("lower handle set value: " + value) // Normalize values between range, since using arrow keys will create out-of-the-range values value = sliderRoot.normalizeValue(value)