Add width to labels in printcore qml object.

This ensures that the elide works correctly

CL-896
This commit is contained in:
Jaime van Kessel 2018-09-05 13:43:24 +02:00
parent cd6832544b
commit 7096c7382b
2 changed files with 3 additions and 2 deletions

View File

@ -69,6 +69,7 @@ Item
} }
font: UM.Theme.getFont("default_bold") font: UM.Theme.getFont("default_bold")
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width
} }
Label Label
@ -84,7 +85,7 @@ Item
} }
anchors.top: materialLabel.bottom anchors.top: materialLabel.bottom
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width
opacity: 0.6 opacity: 0.6
font: UM.Theme.getFont("default") font: UM.Theme.getFont("default")
} }

View File

@ -351,7 +351,7 @@ Item
PrintCoreConfiguration PrintCoreConfiguration
{ {
id: leftExtruderInfo id: leftExtruderInfo
width: Math.round(parent.width / 2) width: Math.round(parent.width / 2)
printCoreConfiguration: printJob.configuration.extruderConfigurations[0] printCoreConfiguration: printJob.configuration.extruderConfigurations[0]
} }