Room list: add scrollbar when not collapsed

pull/1371/head
Alexander Bantyev 2 years ago committed by Nicolas Werner
parent 316eb07dbf
commit ac19c6c92b
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 8
      resources/qml/RoomList.qml

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

Loading…
Cancel
Save