fix(StatusChatList): Enable StatusChatList sizing and disable scroll filtering when the listview.height == listview.contentHeight

Fixing #9460 Community -> Channels list: can't scroll list of channels with touchpad
The root-cause of this issue is that we use a Listview with height == contentHeight and delegate the scrolling to a ScrollView. The reasoning is that we can attach other items to the bottom of the listview and delegating the scroll to a ScrollView will enable us to scroll the listview+other items attached at the bottom at the same time.
Fixing it by setting ListView.interactive to false when the listview cannot be scrolled.
Also fixed the listview height so that it can also be used as a scrollable listview.
This commit is contained in:
Alex Jbanca 2023-02-08 15:15:35 +02:00 committed by Alex Jbanca
parent 243f1e5607
commit 26baaa0e15
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ Item {
id: root
implicitWidth: statusChatListItems.width
height: statusChatListItems.height
implicitHeight: statusChatListItems.contentHeight
property string categoryId: ""
property var model: null
@ -34,10 +34,11 @@ Item {
StatusListView {
id: statusChatListItems
width: 288
height: contentHeight
height: root.height
objectName: "chatListItems"
model: root.model
spacing: 0
interactive: height !== contentHeight
section.property: "categoryId"
section.criteria: ViewSection.FullString