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 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")) color: UM.Theme.getColor((tableScrollView.currentRow == row) ? "primary" : ((row % 2 == 0) ? "main_background" : "viewport_background"))
Label Label
{ {
id: cellContent id: cellContent
anchors.fill: parent width: parent.width
text: display text: display
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter