From e60fcb8f56275570cb6ce1b8bdab672b93593886 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sun, 23 Oct 2022 06:34:36 -0500 Subject: [PATCH] putting ServiceList scrollbar outside listview --- src/qml/presenter/ServiceList.qml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/qml/presenter/ServiceList.qml b/src/qml/presenter/ServiceList.qml index 6f536a9..ea41e90 100644 --- a/src/qml/presenter/ServiceList.qml +++ b/src/qml/presenter/ServiceList.qml @@ -87,7 +87,11 @@ Item { ListView { id: serviceItemList - anchors.fill: parent + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.left: parent.left + width: serviceListScrollBar.visible ? + parent.width - serviceListScrollBar.width : parent.width clip: true spacing: 3 property int indexDragged @@ -307,8 +311,12 @@ Item { } Controls.ScrollBar.vertical: Controls.ScrollBar { - anchors.right: serviceItemList.right - anchors.rightMargin: 0 + id: serviceListScrollBar + parent: serviceItemList.parent + anchors.right: background.right + anchors.left: serviceItemList.right + anchors.top: serviceItemList.top + anchors.bottom: serviceItemList.bottom active: hovered || pressed }