mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix pixel-position of layer slider after the window was resized.
CURA-6853
This commit is contained in:
parent
5bb23e4c6f
commit
f090450bba
1 changed files with 3 additions and 3 deletions
|
@ -177,8 +177,8 @@ Item
|
||||||
}
|
}
|
||||||
|
|
||||||
onHeightChanged : {
|
onHeightChanged : {
|
||||||
print("new height:" + height)
|
// After a height change, the pixel-position of the lower handle is out of sync with the property value
|
||||||
//rangeHandle.onHandleDragged()
|
setLowerValue(lowerValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upper handle
|
// Upper handle
|
||||||
|
@ -338,7 +338,7 @@ Item
|
||||||
// set the slider position based on the lower value
|
// set the slider position based on the lower value
|
||||||
function setValue(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
|
// Normalize values between range, since using arrow keys will create out-of-the-range values
|
||||||
value = sliderRoot.normalizeValue(value)
|
value = sliderRoot.normalizeValue(value)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue