mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Parent ScrollBars to their Flingables, not the StackView
This ensures they disappear when navigating to a new page
This commit is contained in:
+1
-14
@@ -263,18 +263,5 @@ CenteredGridView {
|
|||||||
onAccepted: quitApp()
|
onAccepted: quitApp()
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-8
@@ -317,12 +317,5 @@ CenteredGridView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBar {}
|
||||||
parent: pcGrid.parent
|
|
||||||
anchors {
|
|
||||||
top: parent.top
|
|
||||||
right: parent.right
|
|
||||||
bottom: parent.bottom
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,12 +16,8 @@ Flickable {
|
|||||||
contentHeight: settingsColumn1.height > settingsColumn2.height ? settingsColumn1.height : settingsColumn2.height
|
contentHeight: settingsColumn1.height > settingsColumn2.height ? settingsColumn1.height : settingsColumn2.height
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBar {
|
||||||
parent: settingsPage.parent
|
|
||||||
anchors {
|
anchors {
|
||||||
top: settingsPage.top
|
left: parent.right
|
||||||
left: settingsPage.right
|
|
||||||
bottom: settingsPage.bottom
|
|
||||||
|
|
||||||
leftMargin: -10
|
leftMargin: -10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user