From 7fdbb11f492e00ec75dfcf8037a00aad75b94799 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Thu, 24 Jan 2019 21:56:22 +0100 Subject: [PATCH] MaterialInfo: Put height and fonts by QML-elements for 'by material-type'. [CURA-6141] --- resources/qml/ActionPanel/PrintJobInformation.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/qml/ActionPanel/PrintJobInformation.qml b/resources/qml/ActionPanel/PrintJobInformation.qml index 7b6d70d80b..daac6e0a19 100644 --- a/resources/qml/ActionPanel/PrintJobInformation.qml +++ b/resources/qml/ActionPanel/PrintJobInformation.qml @@ -140,16 +140,16 @@ Column Repeater { model: byMaterialType.getMaterialTable() - Row { - //property var rowLength: modelData.length Repeater { model: modelData Text { width: Math.round(byMaterialType.width * byMaterialType.columnWidthMultipliers[index]) + height: contentHeight + font: UM.Theme.getFont("default") wrapMode: Text.WrapAnywhere text: modelData } @@ -159,6 +159,7 @@ Column } width: parent.width - 2 * UM.Theme.getSize("default_margin").width + height: childrenRect.height color: UM.Theme.getColor("text") font: UM.Theme.getFont("default") renderType: Text.NativeRendering