RibbonView: Change view's bounceBehavior and add function scroll_to_bottom.

This commit is contained in:
Mentalflow 2023-08-23 21:33:38 +08:00
parent 8e86e7e112
commit 9516cbff48
Signed by: Mentalflow
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 5 additions and 1 deletions

View File

@ -57,7 +57,7 @@ Item {
anchors.right: flickview.right anchors.right: flickview.right
anchors.rightMargin: 2 anchors.rightMargin: 2
} }
boundsBehavior: Flickable.StopAtBounds boundsBehavior: Flickable.DragOverBounds
ColumnLayout{ ColumnLayout{
id:container id:container
anchors{ anchors{
@ -83,4 +83,8 @@ Item {
clip: true clip: true
target_rect: Qt.rect(x,y-top_padding,width,height) target_rect: Qt.rect(x,y-top_padding,width,height)
} }
function scroll_to_bottom(){
flickview.contentY = flickview.contentHeight - flickview.height
}
} }