fix: fix binding loop in message count

This commit is contained in:
Jonathan Rainville 2020-09-23 16:08:43 -04:00 committed by Iuri Matias
parent e3dc0469e2
commit 99d5a46073
1 changed files with 2 additions and 1 deletions

View File

@ -66,9 +66,10 @@ RowLayout {
anchors.topMargin: -5
radius: 9
color: Style.current.blue
width: chatsModel.unreadMessagesCount < 10 ? 18 : childrenRect.width + 10
width: chatsModel.unreadMessagesCount < 10 ? 18 : messageCount.width + 10
height: 18
Text {
id: messageCount
font.pixelSize: chatsModel.unreadMessagesCount > 99 ? 10 : 12
color: Style.current.white
anchors.centerIn: parent