Parent ScrollBars to their Flingables, not the StackView

This ensures they disappear when navigating to a new page
This commit is contained in:
Cameron Gutman 2020-05-10 12:53:27 -07:00
parent 573c470965
commit 8d89983eeb
3 changed files with 3 additions and 27 deletions

View file

@ -263,18 +263,5 @@ CenteredGridView {
onAccepted: quitApp()
}
ScrollBar.vertical: ScrollBar {
// Manually hide the scrollbar to prevent it from being drawn on top
// of the StreamSegue during the transition. It can sometimes get stuck
// there since we're not consistently pumping the event loop while
// starting the stream.
visible: activated
parent: appGrid.parent
anchors {
top: parent.top
right: parent.right
bottom: parent.bottom
}
}
ScrollBar.vertical: ScrollBar {}
}

View file

@ -317,12 +317,5 @@ CenteredGridView {
}
}
ScrollBar.vertical: ScrollBar {
parent: pcGrid.parent
anchors {
top: parent.top
right: parent.right
bottom: parent.bottom
}
}
ScrollBar.vertical: ScrollBar {}
}

View file

@ -16,12 +16,8 @@ Flickable {
contentHeight: settingsColumn1.height > settingsColumn2.height ? settingsColumn1.height : settingsColumn2.height
ScrollBar.vertical: ScrollBar {
parent: settingsPage.parent
anchors {
top: settingsPage.top
left: settingsPage.right
bottom: settingsPage.bottom
left: parent.right
leftMargin: -10
}
}