Skip to content
Snippets Groups Projects
Commit cf2b9cc1 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

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
parent b24687d1
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment