From 30aedd36a1d3359a0200f14cacebc67e7bcf14a5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 15 Sep 2021 23:18:21 +0200 Subject: Reenable reuseItems for the message view If this is still broken, we will need to disable it again. --- resources/qml/MessageView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources/qml/MessageView.qml') diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index 2d4fe3a7..d80d274d 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -25,8 +25,8 @@ ScrollView { model: room // reuseItems still has a few bugs, see https://bugreports.qt.io/browse/QTBUG-95105 https://bugreports.qt.io/browse/QTBUG-95107 - //onModelChanged: if (room) room.sendReset() - //reuseItems: true + onModelChanged: if (room) room.sendReset() + reuseItems: true boundsBehavior: Flickable.StopAtBounds pixelAligned: true spacing: 4 @@ -361,7 +361,7 @@ ScrollView { anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined width: chat.delegateMaxWidth - height: section ? section.height + timelinerow.height : timelinerow.height + height: Math.max(section.active ? section.height + timelinerow.height : timelinerow.height, 10) Rectangle { id: scrollHighlight -- cgit 1.5.1