Skip to content

Commit

Permalink
Show scrollbar in CollectionsDrawer as needed (#2691)
Browse files Browse the repository at this point in the history
Signed-off-by: Cosmic Snow <cosmic-snow@mailfence.com>
  • Loading branch information
cosmic-snow authored Jul 19, 2024
1 parent f438626 commit 54ed309
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions gpt4all-chat/qml/CollectionsDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 54ed309

Please sign in to comment.