Browse Source

Remove unnecessary item wrapper

Contributes to issue CURA-5876.
Ghostkeeper 6 years ago
parent
commit
ef29fb0cfa
1 changed files with 4 additions and 9 deletions
  1. 4 9
      resources/qml/Menus/ConfigurationMenu/PrintCoreConfiguration.qml

+ 4 - 9
resources/qml/Menus/ConfigurationMenu/PrintCoreConfiguration.qml

@@ -16,16 +16,11 @@ Row
     spacing: UM.Theme.getSize("default_margin").width
 
     //Extruder icon.
-    Item
+    Cura.ExtruderIcon
     {
-        width: childrenRect.width
-        height: information.height
-        Cura.ExtruderIcon
-        {
-            materialColor: printCoreConfiguration.material.color
-            anchors.verticalCenter: parent.verticalCenter
-            extruderEnabled: printCoreConfiguration.material.name !== "" && printCoreConfiguration.hotendID !== ""
-        }
+        materialColor: printCoreConfiguration.material.color
+        anchors.verticalCenter: parent.verticalCenter
+        extruderEnabled: printCoreConfiguration.material.name !== "" && printCoreConfiguration.hotendID !== ""
     }
 
     Column