Make sure we never get in-panel scrolling when we shouldn'

This commit is contained in:
David Heinemeier Hansson
2026-06-20 22:19:53 +02:00
parent d74ed24db7
commit 8ae975357a
7 changed files with 18 additions and 3 deletions
+6 -1
View File
@@ -382,7 +382,12 @@ Panel {
anchors.fill: parent
clip: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
ScrollBar.vertical.policy: panelColumn.implicitHeight > height ? ScrollBar.AsNeeded : ScrollBar.AlwaysOff
Binding {
target: scrollArea.contentItem
property: "interactive"
value: panelColumn.implicitHeight > scrollArea.height
}
Column {
id: panelColumn