From 0f61e25a77e6259291112d07f1b49315d2ae9d03 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 21 Jan 2022 17:07:10 +0100 Subject: [PATCH] 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. --- resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml b/resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml index 752ad64f98..64f194dd56 100644 --- a/resources/qml/WelcomePages/AddNetworkPrinterScrollView.qml +++ b/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")