fix(ChatMessageView): delayed binding for proper msg height calculation

Direct binding was causing problems with height calculation in some
environments (qt 5.15) and lack of binding in other (5.14). This is
a solution which seems to work in both cases.

Closes: #7703
This commit is contained in:
Michał Cieślak 2022-10-03 14:30:04 +02:00 committed by Michał
parent b2f927b716
commit 53a3a769d9
1 changed files with 5 additions and 0 deletions

View File

@ -251,6 +251,11 @@ Item {
width: ListView.view.width width: ListView.view.width
Binding on height {
delayed: true
value: msgDelegate.implicitHeight
}
objectName: "chatMessageViewDelegate" objectName: "chatMessageViewDelegate"
rootStore: root.rootStore rootStore: root.rootStore
messageStore: root.messageStore messageStore: root.messageStore