Browse Source

Fix binding loop in objectItemButton

CURA-8684
Jaime van Kessel 3 years ago
parent
commit
ecba5b409c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/qml/ObjectItemButton.qml

+ 2 - 2
resources/qml/ObjectItemButton.qml

@@ -82,7 +82,7 @@ Button
                 right: parent.right
                 rightMargin: 0
             }
-            width: contentItem.width
+            width: meshTypeIcon.width + perObjectSettingsCountLabel.width + UM.Theme.getSize("narrow_margin").width
             height: parent.height
             padding: 0
             leftPadding: UM.Theme.getSize("thin_margin").width
@@ -131,7 +131,7 @@ Button
             contentItem: Item
             {
                 height: parent.height
-                width: meshTypeIcon.width + perObjectSettingsCountLabel.width + UM.Theme.getSize("narrow_margin").width
+                width: perObjectSettingsInfo.width
 
                 Cura.NotificationIcon
                 {