Browse Source

Fix PrintSetupHeaderButton displaying text twice

CURA-8684
casper 3 years ago
parent
commit
a66275ce73
1 changed files with 12 additions and 11 deletions
  1. 12 11
      resources/qml/PrintSetupHeaderButton.qml

+ 12 - 11
resources/qml/PrintSetupHeaderButton.qml

@@ -85,16 +85,17 @@ ToolButton
             color: base.enabled ? UM.Theme.getColor("setting_control_button") : UM.Theme.getColor("setting_category_disabled_text")
             source: UM.Theme.getIcon("ChevronSingleDown")
         }
-        UM.Label
-        {
-            id: printSetupComboBoxLabel
-            text: base.text
-            elide: Text.ElideRight;
-            anchors.left: parent.left;
-            anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
-            anchors.right: downArrow.lef
-            anchors.rightMargin: base.rightMargin
-            anchors.verticalCenter: parent.verticalCenter
-        }
+    }
+
+    contentItem: UM.Label
+    {
+        id: printSetupComboBoxLabel
+        text: base.text
+        elide: Text.ElideRight;
+        anchors.left: parent.left;
+        anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
+        anchors.right: downArrow.lef
+        anchors.rightMargin: base.rightMargin
+        anchors.verticalCenter: parent.verticalCenter
     }
 }