hoverpanel: add max height with flickable scrolling when content overflows
This commit is contained in:
parent
c64373313d
commit
2ed0b3da3a
1 changed files with 13 additions and 2 deletions
|
|
@ -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 {
|
Column {
|
||||||
id: panelContent
|
id: panelContent
|
||||||
width: parent.width
|
width: parent.width
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Border overlay — on top of content so full-bleed items don't cover it
|
// Border overlay — on top of content so full-bleed items don't cover it
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue