mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix the width of the slider label when the number of layers was exactly
10, 100, 1000 and so on. The calculation was using the maximumValue that is 9 in case we have 10 layers, since we start counting from 0 but showing from 1. Now it uses maximumValue + 1.
This commit is contained in:
parent
bca3af16e0
commit
ce7d2c36d0
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ UM.PointingRectangle {
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
width: (maximumValue.toString().length + 1) * 10 * screenScaleFactor
|
width: ((maximumValue + 1).toString().length + 1) * 10 * screenScaleFactor
|
||||||
text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array
|
text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array
|
||||||
horizontalAlignment: TextInput.AlignRight
|
horizontalAlignment: TextInput.AlignRight
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue