From 63b2bf703c7fbbcc26470397603dfd7994324efa Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Tue, 21 Sep 2021 16:13:17 +0300 Subject: [PATCH] fix(desktop/membersList) hide scrollbar when inactive The scrollbar should only be visible when scrolling through the members list Closes #3557 --- ui/app/AppLayouts/Chat/ChatColumn/UserList.qml | 4 +++- .../AppLayouts/Chat/CommunityComponents/CommunityUserList.qml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml b/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml index faf0936053..c5b6734b70 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml @@ -37,7 +37,9 @@ Item { ListView { id: userListView clip: true - ScrollBar.vertical: ScrollBar { } + ScrollBar.vertical: ScrollBar { + policy: ScrollBar.AsNeeded + } anchors { left: parent.left top: titleText.bottom diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityUserList.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityUserList.qml index bd4c803781..8114c78966 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityUserList.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityUserList.qml @@ -39,7 +39,9 @@ Item { ListView { id: userListView clip: true - ScrollBar.vertical: ScrollBar { } + ScrollBar.vertical: ScrollBar { + policy: ScrollBar.AsNeeded + } anchors { top: titleText.bottom topMargin: Style.current.padding