Browse Source

Fix positioning of marketplace searchbar

CURA-8762
Jaime van Kessel 3 years ago
parent
commit
80f99b0a59
1 changed files with 2 additions and 8 deletions
  1. 2 8
      plugins/Marketplace/resources/qml/Marketplace.qml

+ 2 - 8
plugins/Marketplace/resources/qml/Marketplace.qml

@@ -98,20 +98,14 @@ Window
                 Item
                 {
                     Layout.preferredHeight: childrenRect.height
-                    Layout.preferredWidth: parent.width - 2 * UM.Theme.getSize("thin_margin").width
+                    Layout.preferredWidth: parent.width - 2 * UM.Theme.getSize("default_margin").width
+                    Layout.alignment: Qt.AlignHCenter
                     RowLayout
                     {
                         width: parent.width
                         height: UM.Theme.getSize("button_icon").height + UM.Theme.getSize("default_margin").height
                         spacing: UM.Theme.getSize("thin_margin").width
 
-                        Item
-                        {
-                            Layout.preferredHeight: parent.height
-                            Layout.preferredWidth: searchBar.visible ? UM.Theme.getSize("thin_margin").width : 0
-                            Layout.fillWidth: ! searchBar.visible
-                        }
-
                         Cura.SearchBar
                         {
                             id: searchBar