Fix messages sometimes not being rendered, when they are too large

This commit is contained in:
Nicolas Werner 2021-02-10 15:24:00 +01:00
parent 6a2e8a6952
commit 2606568376
2 changed files with 0 additions and 5 deletions

View file

@ -13,7 +13,6 @@ ListView {
Layout.fillWidth: true
Layout.fillHeight: true
cacheBuffer: 400
model: TimelineManager.timeline
boundsBehavior: Flickable.StopAtBounds
pixelAligned: true

View file

@ -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();