Reenable reuseItems for the message view

If this is still broken, we will need to disable it again.
This commit is contained in:
Nicolas Werner 2021-09-15 23:18:21 +02:00
parent c7545cb455
commit 30aedd36a1
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -3,11 +3,11 @@
// SPDX-License-Identifier: GPL-3.0-or-later
import ".."
import QtQuick 2.15
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.2
import im.nheko 1.0
ColumnLayout {
Column {
id: r
required property int encryptionError

View File

@ -34,7 +34,7 @@ Item {
required property int encryptionError
required property int relatedEventCacheBuster
height: chooser.child.height
height: Math.max(chooser.child.height, 20)
DelegateChooser {
id: chooser