From a7449ade87227584e8b848f0621e5982c7559cbe Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Thu, 19 Jul 2018 11:42:42 +0200 Subject: [PATCH] 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. --- plugins/SimulationView/SimulationSliderLabel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/SimulationView/SimulationSliderLabel.qml b/plugins/SimulationView/SimulationSliderLabel.qml index 8615a382da..cdefd75f2b 100644 --- a/plugins/SimulationView/SimulationSliderLabel.qml +++ b/plugins/SimulationView/SimulationSliderLabel.qml @@ -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