summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-10 15:24:00 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-10 15:24:00 +0100
commit2606568376e032a5b66275397a52267f2e4c4578 (patch)
tree31afb7a279ae410ca6b4542499edd38ec7038f16
parentTry to avoid QTBUG-89568 (diff)
downloadnheko-2606568376e032a5b66275397a52267f2e4c4578.tar.xz
Fix messages sometimes not being rendered, when they are too large
-rw-r--r--resources/qml/MessageView.qml1
-rw-r--r--src/timeline/DelegateChooser.cpp4
2 files changed, 0 insertions, 5 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml

index b0498c4e..09dc4e36 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml
@@ -13,7 +13,6 @@ ListView { Layout.fillWidth: true Layout.fillHeight: true - cacheBuffer: 400 model: TimelineManager.timeline boundsBehavior: Flickable.StopAtBounds pixelAligned: true diff --git a/src/timeline/DelegateChooser.cpp b/src/timeline/DelegateChooser.cpp
index 1f5fae7e..8598fa77 100644 --- a/src/timeline/DelegateChooser.cpp +++ b/src/timeline/DelegateChooser.cpp
@@ -123,10 +123,6 @@ DelegateChooser::DelegateIncubator::statusChanged(QQmlIncubator::Status status) } chooser.child_->setParentItem(&chooser); - connect(chooser.child_, &QQuickItem::heightChanged, &chooser, [this]() { - chooser.setHeight(chooser.child_->height()); - }); - chooser.setHeight(chooser.child_->height()); QQmlEngine::setObjectOwnership(chooser.child_, QQmlEngine::ObjectOwnership::JavaScriptOwnership); emit chooser.childChanged();