From ac19c6c92b676f5544dc9094b26afec29768c056 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 18 Jan 2023 12:17:58 +0400 Subject: [PATCH] Room list: add scrollbar when not collapsed --- resources/qml/RoomList.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml index 348d104f..d51933f9 100644 --- a/resources/qml/RoomList.qml +++ b/resources/qml/RoomList.qml @@ -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