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,9 +373,20 @@ PanelWindow {
} }
} }
Column { Flickable {
id: panelContent id: _flickable
width: parent.width 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
}
} }
} }
} }