From 39e29ae768718b439a254504a1a94903f09b563a Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 25 Jan 2022 18:34:04 +0100 Subject: [PATCH] Fix QML warning of 0 height from before table is filled If there is no model data, the cells will be empty and would have a height of 0. The table warns us that a height of 0 is not allowed. Contributes to issue CURA-8686. --- plugins/DigitalLibrary/resources/qml/Table.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/DigitalLibrary/resources/qml/Table.qml b/plugins/DigitalLibrary/resources/qml/Table.qml index ea379b0885..503672be4c 100644 --- a/plugins/DigitalLibrary/resources/qml/Table.qml +++ b/plugins/DigitalLibrary/resources/qml/Table.qml @@ -117,7 +117,7 @@ Item delegate: Rectangle { - implicitHeight: cellContent.height + implicitHeight: Math.max(1, cellContent.height) color: UM.Theme.getColor((tableScrollView.currentRow == row) ? "primary" : ((row % 2 == 0) ? "main_background" : "viewport_background"))