Move layer slider range handle label to below the vertical center

CURA-6854
This commit is contained in:
Nino van Hooff 2019-10-29 13:39:52 +01:00
parent ba766c3a19
commit 3db5abbd3a

View file

@ -161,11 +161,10 @@ Item
SimulationSliderLabel SimulationSliderLabel
{ {
id: rangleHandleLabel id: rangleHandleLabel
y: parent.height / 2
height: sliderRoot.handleSize + UM.Theme.getSize("default_margin").height height: sliderRoot.handleSize + UM.Theme.getSize("small_margin").height
x: parent.x - width - UM.Theme.getSize("default_margin").width anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter target: Qt.point(parent.width / 2, y -100)
target: Qt.point(sliderRoot.width, y + height / 2)
visible: sliderRoot.activeHandle == parent visible: sliderRoot.activeHandle == parent
// custom properties // custom properties