hoverpanel: add max height with flickable scrolling when content overflows

This commit is contained in:
Damocles 2026-04-25 10:44:31 +02:00
parent c64373313d
commit 2ed0b3da3a

View file

@ -373,12 +373,23 @@ PanelWindow {
}
}
Flickable {
id: _flickable
width: parent.width
height: Math.min(panelContent.height, _maxContentHeight)
contentHeight: panelContent.height
clip: contentHeight > height
boundsBehavior: Flickable.StopAtBounds
readonly property real _maxContentHeight: (root.screen?.height ?? 1080) * 0.6 - (_headerItem.visible ? _headerItem.height : 0)
Column {
id: panelContent
width: parent.width
}
}
}
}
// Border overlay on top of content so full-bleed items don't cover it
Rectangle {