Room list: add scrollbar when not collapsed

This commit is contained in:
Alexander Bantyev 2023-01-18 12:17:58 +04:00 committed by Nicolas Werner
parent 316eb07dbf
commit ac19c6c92b
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -60,6 +60,12 @@ Page {
model: Rooms
reuseItems: true
ScrollBar.vertical: ScrollBar {
id: roomlistscrollbar
active: true
visible: (! collapsed) && (parent.contentHeight > parent.height)
}
ScrollHelper {
flickable: parent
anchors.fill: parent
@ -258,7 +264,7 @@ Page {
}
height: avatarSize + 2 * Nheko.paddingMedium
width: ListView.view.width
width: ListView.view.width - roomlistscrollbar.width
state: "normal"
ToolTip.visible: hovered && collapsed
ToolTip.delay: Nheko.tooltipDelay