Don't allow Flickables to be dragged beyond bounds

This commit is contained in:
Cameron Gutman 2020-02-20 13:38:01 -08:00
parent 652ad86cad
commit 61fc0e4893
2 changed files with 4 additions and 0 deletions

View file

@ -38,4 +38,6 @@ GridView {
updateMargins()
}
boundsBehavior: Flickable.OvershootBounds
}

View file

@ -10,6 +10,8 @@ Flickable {
id: settingsPage
objectName: "Settings"
boundsBehavior: Flickable.OvershootBounds
contentWidth: settingsColumn1.width > settingsColumn2.width ? settingsColumn1.width : settingsColumn2.width
contentHeight: settingsColumn1.height > settingsColumn2.height ? settingsColumn1.height : settingsColumn2.height