Browse Source

Fix anchoring width of network printer view to scrollbar

You can't anchor to something that's not a parent or sibling, and the scrollbar was an... uncle?

Contributes to issue CURA-8686.
Ghostkeeper 3 years ago
parent
commit
0f61e25a77
1 changed files with 1 additions and 2 deletions
  1. 1 2
      resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml

+ 1 - 2
resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml

@@ -69,8 +69,7 @@ Item
             {
                 anchors.left: parent.left
                 anchors.leftMargin: UM.Theme.getSize("default_margin").width
-                anchors.right: networkPrinterScrollBar.left
-                anchors.rightMargin: UM.Theme.getSize("default_margin").width
+                width: parent.width - networkPrinterScrollBar.width - UM.Theme.getSize("default_margin").width
                 height: UM.Theme.getSize("setting_control").height
                 text: section
                 color: UM.Theme.getColor("small_button_text")