Просмотр исходного кода

Don't use anchors in a Layout context

The anchors won't work then. They can never mix.
In this case it's easiest to continue with the Layout.

Contributes to issue CURA-7501.
Ghostkeeper 4 лет назад
Родитель
Сommit
5668eba6b2
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      plugins/Toolbox/resources/qml/dialogs/ToolboxLicenseDialog.qml

+ 1 - 2
plugins/Toolbox/resources/qml/dialogs/ToolboxLicenseDialog.qml

@@ -42,8 +42,7 @@ UM.Dialog
         Row {
             id: packageRow
 
-            anchors.left: parent.left
-            anchors.right: parent.right
+            Layout.fillWidth: true
             height: childrenRect.height
             spacing: UM.Theme.getSize("default_margin").width
             leftPadding: UM.Theme.getSize("narrow_margin").width