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")
elide: Text.ElideRight
width: parent.width
}
Label
@ -84,7 +85,7 @@ Item
}
anchors.top: materialLabel.bottom
elide: Text.ElideRight
width: parent.width
opacity: 0.6
font: UM.Theme.getFont("default")
}