Skip to content
Snippets Groups Projects
Commit cf72613d authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

sbsmessagebase: fix message listview preferredHeight binding loop

Change-Id: I36ced4e4e15d1d047027c51b3136b676fcd2a2e7
parent 3dd206e6
No related branches found
No related tags found
No related merge requests found
......@@ -114,13 +114,15 @@ Control {
orientation: ListView.Horizontal
Layout.preferredHeight: {
if (showTime || seq === MsgSeq.last)
return childrenRect.height
return contentHeight + formattedTimeLabel.contentHeight
else if (reads.visible)
return JamiTheme.avatarReadReceiptSize
return 0
}
Label {
id: formattedTimeLabel
text: formattedTime
color: JamiTheme.timestampColor
visible: showTime || seq === MsgSeq.last
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment