mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Center in parent and increase width. Fits good on Mac
This commit is contained in:
parent
68a62f1a66
commit
cfcf52d7c3
1 changed files with 2 additions and 3 deletions
|
@ -44,12 +44,11 @@ UM.PointingRectangle {
|
||||||
id: valueLabel
|
id: valueLabel
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
|
||||||
leftMargin: Math.round(UM.Theme.getSize("default_margin").width / 2)
|
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
width: (maximumValue.toString().length + 1) * 8 * screenScaleFactor
|
width: (maximumValue.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