summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-11-08 22:08:51 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:16 +0100
commit0cec167339aff5e7db43f64f6ab359f80df784fd (patch)
tree09dfc6742818cc55a87d22280e86ee507cf9b5d6
parentoptionally use QQuickWidget and replace ColorOverlay -> colorImageProvider (diff)
downloadnheko-0cec167339aff5e7db43f64f6ab359f80df784fd.tar.xz
Fix infinite item instantiating loop by using height instead of contentHeight
-rw-r--r--resources/qml/TimelineRow.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/qml/TimelineRow.qml b/resources/qml/TimelineRow.qml

index 63a84701..a2d4fca5 100644 --- a/resources/qml/TimelineRow.qml +++ b/resources/qml/TimelineRow.qml
@@ -14,12 +14,11 @@ RowLayout { anchors.left: parent.left anchors.right: parent.right - implicitHeight: contentItem.height + height: Math.max(contentItem.height, 16) Column { Layout.fillWidth: true Layout.alignment: Qt.AlignTop - id: contentItem //property var replyTo: model.replyTo @@ -28,6 +27,8 @@ RowLayout { // text: "" + (idx != -1 ? timelineManager.timeline.data(timelineManager.timeline.index(idx, 0), 2) : "nothing") //} MessageDelegate { + id: contentItem + width: parent.width height: childrenRect.height }