RibbonView: Change view's bounceBehavior and add function scroll_to_bottom.
This commit is contained in:
parent
8e86e7e112
commit
9516cbff48
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue