Scroll to top of RoomDrawer on loading of header
This commit is contained in:
@@ -74,7 +74,7 @@ Kirigami.OverlayDrawer {
|
|||||||
active: roomDrawer.drawerOpen
|
active: roomDrawer.drawerOpen
|
||||||
|
|
||||||
sourceComponent: ColumnLayout {
|
sourceComponent: ColumnLayout {
|
||||||
readonly property string userSearchText: userListView.headerItem.userListSearchField.text
|
readonly property string userSearchText: userListView.headerItem ? userListView.headerItem.userListSearchField.text : ''
|
||||||
property alias highlightedUser: userListView.currentIndex
|
property alias highlightedUser: userListView.currentIndex
|
||||||
|
|
||||||
spacing: 0
|
spacing: 0
|
||||||
@@ -129,6 +129,9 @@ Kirigami.OverlayDrawer {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.topMargin: Kirigami.Units.smallSpacing
|
Layout.topMargin: Kirigami.Units.smallSpacing
|
||||||
sourceComponent: room.isDirectChat() ? directChatDrawerHeader : groupChatDrawerHeader
|
sourceComponent: room.isDirectChat() ? directChatDrawerHeader : groupChatDrawerHeader
|
||||||
|
onItemChanged: if (item) {
|
||||||
|
userListView.positionViewAtBeginning();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.ListSectionHeader {
|
Kirigami.ListSectionHeader {
|
||||||
|
|||||||
Reference in New Issue
Block a user