mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix infinite item instantiating loop by using height instead of contentHeight
This commit is contained in:
parent
2bfb885b47
commit
0cec167339
1 changed files with 3 additions and 2 deletions
|
@ -14,12 +14,11 @@ RowLayout {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
implicitHeight: contentItem.height
|
height: Math.max(contentItem.height, 16)
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
id: contentItem
|
|
||||||
|
|
||||||
//property var replyTo: model.replyTo
|
//property var replyTo: model.replyTo
|
||||||
|
|
||||||
|
@ -28,6 +27,8 @@ RowLayout {
|
||||||
// text: "" + (idx != -1 ? timelineManager.timeline.data(timelineManager.timeline.index(idx, 0), 2) : "nothing")
|
// text: "" + (idx != -1 ? timelineManager.timeline.data(timelineManager.timeline.index(idx, 0), 2) : "nothing")
|
||||||
//}
|
//}
|
||||||
MessageDelegate {
|
MessageDelegate {
|
||||||
|
id: contentItem
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue