From 54ed30937f717286083c7071e288393a3c49a769 Mon Sep 17 00:00:00 2001 From: cosmic-snow <134004613+cosmic-snow@users.noreply.github.com> Date: Fri, 19 Jul 2024 22:56:20 +0200 Subject: [PATCH] Show scrollbar in CollectionsDrawer as needed (#2691) Signed-off-by: Cosmic Snow --- gpt4all-chat/qml/CollectionsDrawer.qml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gpt4all-chat/qml/CollectionsDrawer.qml b/gpt4all-chat/qml/CollectionsDrawer.qml index 48ebd6a8..93eeda9d 100644 --- a/gpt4all-chat/qml/CollectionsDrawer.qml +++ b/gpt4all-chat/qml/CollectionsDrawer.qml @@ -31,21 +31,19 @@ Rectangle { anchors.bottom: parent.bottom anchors.left: borderLeft.right anchors.right: parent.right - anchors.margins: 15 + anchors.margins: 2 + anchors.bottomMargin: 10 clip: true contentHeight: 300 - ScrollBar.vertical.policy: ScrollBar.AlwaysOff + ScrollBar.vertical.policy: ScrollBar.AsNeeded ListView { id: listView model: LocalDocs.localDocsModel + anchors.fill: parent + anchors.margins: 13 + anchors.bottomMargin: 5 boundsBehavior: Flickable.StopAtBounds - ScrollBar.vertical: ScrollBar { - parent: listView.parent - anchors.top: listView.top - anchors.left: listView.right - anchors.bottom: listView.bottom - } spacing: 15 delegate: Rectangle {