From ba6cf8eae5e4d8cca563b3695828acbbdb3fd107 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Thu, 7 Nov 2019 12:46:45 +0100 Subject: Fix window resize bug in LayerSlider concerning handle position Upper handle position would not be updated on resize CURA-6854 --- plugins/SimulationView/LayerSlider.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/SimulationView') diff --git a/plugins/SimulationView/LayerSlider.qml b/plugins/SimulationView/LayerSlider.qml index 0c62dd01cf..6f608fe474 100644 --- a/plugins/SimulationView/LayerSlider.qml +++ b/plugins/SimulationView/LayerSlider.qml @@ -165,8 +165,9 @@ Item } onHeightChanged : { - // After a height change, the pixel-position of the lower handle is out of sync with the property value + // After a height change, the pixel-position of the handles is out of sync with the property value setLowerValue(lowerValue) + setUpperValue(upperValue) } // Upper handle -- cgit v1.2.3