From 53a3a769d90110818355ff0c59d7e67b199766be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Mon, 3 Oct 2022 14:30:04 +0200 Subject: [PATCH] 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 --- ui/app/AppLayouts/Chat/views/ChatMessagesView.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/app/AppLayouts/Chat/views/ChatMessagesView.qml b/ui/app/AppLayouts/Chat/views/ChatMessagesView.qml index a7ef0c4cff..45426c7aab 100644 --- a/ui/app/AppLayouts/Chat/views/ChatMessagesView.qml +++ b/ui/app/AppLayouts/Chat/views/ChatMessagesView.qml @@ -251,6 +251,11 @@ Item { width: ListView.view.width + Binding on height { + delayed: true + value: msgDelegate.implicitHeight + } + objectName: "chatMessageViewDelegate" rootStore: root.rootStore messageStore: root.messageStore