Fix cell height adjusting to content

To be honest, I'm not entirely sure why it only works here if I use implicitHeight instead of height.

Contributes to issue CURA-8686.
This commit is contained in:
Ghostkeeper 2022-01-25 18:22:38 +01:00
parent bbb40d9b11
commit 88bf1995c0
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -107,14 +107,14 @@ Item
delegate: Rectangle
{
height: UM.Theme.getSize("section").height
implicitHeight: cellContent.height
color: UM.Theme.getColor((tableScrollView.currentRow == row) ? "primary" : ((row % 2 == 0) ? "main_background" : "viewport_background"))
Label
{
id: cellContent
anchors.fill: parent
width: parent.width
text: display
verticalAlignment: Text.AlignVCenter