Browse Source

Fix crash on slicing.

A Component with 0 width and height does not load values from registered Objects correctly.

This 0 width/height was caused by a binding loop for height in the contentItem.

CURA-8640
j.delarago 2 years ago
parent
commit
6bb4f52b27
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/qml/ActionPanel/PrintInformationWidget.qml

+ 2 - 2
resources/qml/ActionPanel/PrintInformationWidget.qml

@@ -17,6 +17,8 @@ UM.RecolorImage
 
     color: UM.Theme.getColor("icon")
 
+    property var printMaterialCosts: PrintInformation.materialCosts
+
     MouseArea
     {
         anchors.fill: parent
@@ -37,8 +39,6 @@ UM.RecolorImage
         opacity: opened ? 1 : 0
         Behavior on opacity { NumberAnimation { duration: 100 } }
 
-        contentWidth: printJobInformation.width
-        contentHeight: printJobInformation.implicitHeight
 
         contentItem: PrintJobInformation
         {