mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-21 23:33:58 +02:00
sbsmessagebase: fix message listview preferredHeight binding loop
Change-Id: I36ced4e4e15d1d047027c51b3136b676fcd2a2e7
This commit is contained in:
parent
3dd206e6f0
commit
cf72613d3c
1 changed files with 3 additions and 1 deletions
|
@ -114,13 +114,15 @@ Control {
|
||||||
orientation: ListView.Horizontal
|
orientation: ListView.Horizontal
|
||||||
Layout.preferredHeight: {
|
Layout.preferredHeight: {
|
||||||
if (showTime || seq === MsgSeq.last)
|
if (showTime || seq === MsgSeq.last)
|
||||||
return childrenRect.height
|
return contentHeight + formattedTimeLabel.contentHeight
|
||||||
else if (reads.visible)
|
else if (reads.visible)
|
||||||
return JamiTheme.avatarReadReceiptSize
|
return JamiTheme.avatarReadReceiptSize
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
id: formattedTimeLabel
|
||||||
|
|
||||||
text: formattedTime
|
text: formattedTime
|
||||||
color: JamiTheme.timestampColor
|
color: JamiTheme.timestampColor
|
||||||
visible: showTime || seq === MsgSeq.last
|
visible: showTime || seq === MsgSeq.last
|
||||||
|
|
Loading…
Add table
Reference in a new issue