Browse Source

MaterialInfo: Put height and fonts by QML-elements for 'by material-type'. [CURA-6141]

Remco Burema 6 years ago
parent
commit
7fdbb11f49
1 changed files with 3 additions and 2 deletions
  1. 3 2
      resources/qml/ActionPanel/PrintJobInformation.qml

+ 3 - 2
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