Fix nameLabel binding loop
This commit is contained in:
parent
cea586120e
commit
0488a7dde8
|
@ -43,7 +43,8 @@ Row {
|
||||||
contentLabel.implicitWidth
|
contentLabel.implicitWidth
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
height: nameLabel.height + contentLabel.implicitHeight
|
height: (nameLabel.visible ? nameLabel.height : 0) +
|
||||||
|
contentLabel.implicitHeight
|
||||||
y: parent.height / 2 - height / 2
|
y: parent.height / 2 - height / 2
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
@ -52,10 +53,8 @@ Row {
|
||||||
|
|
||||||
HLabel {
|
HLabel {
|
||||||
id: nameLabel
|
id: nameLabel
|
||||||
visible: height > 0
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: hideNameLine ? 0 : implicitHeight
|
visible: ! hideNameLine
|
||||||
Behavior on height { HNumberAnimation {} }
|
|
||||||
|
|
||||||
text: senderInfo.displayName || model.senderId
|
text: senderInfo.displayName || model.senderId
|
||||||
color: Utils.nameColor(avatar.name)
|
color: Utils.nameColor(avatar.name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user