mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Show scrollbar in CollectionsDrawer as needed (#2691)
Signed-off-by: Cosmic Snow <cosmic-snow@mailfence.com>
This commit is contained in:
parent
f438626bc6
commit
54ed30937f
@ -31,21 +31,19 @@ Rectangle {
|
|||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.left: borderLeft.right
|
anchors.left: borderLeft.right
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.margins: 15
|
anchors.margins: 2
|
||||||
|
anchors.bottomMargin: 10
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: 300
|
contentHeight: 300
|
||||||
ScrollBar.vertical.policy: ScrollBar.AlwaysOff
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: listView
|
id: listView
|
||||||
model: LocalDocs.localDocsModel
|
model: LocalDocs.localDocsModel
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: 13
|
||||||
|
anchors.bottomMargin: 5
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
ScrollBar.vertical: ScrollBar {
|
|
||||||
parent: listView.parent
|
|
||||||
anchors.top: listView.top
|
|
||||||
anchors.left: listView.right
|
|
||||||
anchors.bottom: listView.bottom
|
|
||||||
}
|
|
||||||
spacing: 15
|
spacing: 15
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
|
Loading…
Reference in New Issue
Block a user