diff --git a/src/gui/MainPane/AccountRoomsList.qml b/src/gui/MainPane/AccountRoomsList.qml index f7ad7e48..11f75c59 100644 --- a/src/gui/MainPane/AccountRoomsList.qml +++ b/src/gui/MainPane/AccountRoomsList.qml @@ -22,13 +22,20 @@ HListView { highlight: Rectangle { id: highlightRectangle y: + ! currentItem ? + 0 : + selectedRoom ? currentItem.y + currentItem.account.height + currentItem.roomList.currentItem.y : + currentItem.y width: mainPaneList.width height: + ! currentItem ? + 0 : + selectedRoom ? currentItem.roomList.currentItem.height : currentItem.account.height