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:
parent
b2f927b716
commit
53a3a769d9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue