1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-24 09:25:33 +02:00

chat-view: fix image message aspect ratio calculation

This fixes a binding loop, but introduces another less fatal one,
since commit d6ed9adf.

Change-Id: I67934b4cdde2efe04e20064fe41191241b0689b9
GitLab: #857
This commit is contained in:
Andreas Traczyk 2022-10-19 14:55:34 -04:00
parent b24687d161
commit cf2b9cc18f

View file

@ -342,7 +342,7 @@ Loader {
sourceSize.width: width
sourceSize.height: height
source: "file:///" + Body
property real aspectRatio: width / implicitHeight
property real aspectRatio: implicitWidth / implicitHeight
property real adjustedWidth: Math.min(maxSize,
Math.max(minSize,
innerContent.width - senderMargin))