mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-12 19:45:23 +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
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue