Let the simulation slider label scale on actual font size

CURA-6854
This commit is contained in:
Jaime van Kessel 2019-11-11 16:10:26 +01:00
parent 4613b62120
commit 7e3905059d
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -49,7 +49,7 @@ UM.PointingRectangle {
alignWhenCentered: false
}
width: ((maximumValue + 1).toString().length + 1) * 8 * screenScaleFactor
width: ((maximumValue + 1).toString().length + 1) * UM.Theme.getFont("default").pixelSize
text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array
horizontalAlignment: TextInput.AlignHCenter