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:
parent
b24687d161
commit
cf2b9cc18f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue