Browse Source

Fix warnings caused by combobox

Parent wasn't always set, which caused ocasional warnings
Jaime van Kessel 3 years ago
parent
commit
84a0c732c1
1 changed files with 1 additions and 3 deletions
  1. 1 3
      resources/qml/Widgets/ComboBox.qml

+ 1 - 3
resources/qml/Widgets/ComboBox.qml

@@ -57,9 +57,7 @@ ComboBox
     contentItem: UM.Label
     {
         id: contentLabel
-        anchors.left: parent.left
-        anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
-        anchors.verticalCenter: parent.verticalCenter
+        leftPadding: UM.Theme.getSize("setting_unit_margin").width + UM.Theme.getSize("default_margin").width
         anchors.right: downArrow.left
         wrapMode: Text.NoWrap
         text: