From 88bf1995c0b3c034453ad12fb4159fad25ba41d7 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 25 Jan 2022 18:22:38 +0100 Subject: [PATCH] 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. --- plugins/DigitalLibrary/resources/qml/Table.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/DigitalLibrary/resources/qml/Table.qml b/plugins/DigitalLibrary/resources/qml/Table.qml index 0ae97792dc..d8ea65c992 100644 --- a/plugins/DigitalLibrary/resources/qml/Table.qml +++ b/plugins/DigitalLibrary/resources/qml/Table.qml @@ -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