When the number of layers is less than 10, the width of the TextField

that shows the layer number in the LayerView is too small, so this
commit adjusts the size.
This commit is contained in:
Diego Prado Gesto 2018-07-19 11:42:42 +02:00
parent 29d1de03d1
commit a7449ade87

View file

@ -53,7 +53,7 @@ UM.PointingRectangle {
verticalCenter: parent.verticalCenter
}
width: maximumValue.toString().length * 12 * screenScaleFactor
width: (maximumValue.toString().length + 1) * 8 * screenScaleFactor
text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array
horizontalAlignment: TextInput.AlignRight