Commit 0c2db42b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Also take width into account

BUG: 387819
parent 1a34987a
......@@ -50,7 +50,7 @@ Flow {
x: (parent.width - width)/2
y: (parent.height - height)/2
readonly property real proportion: overlayImage.sourceSize.height/overlayImage.sourceSize.width
height: Math.min(parent.height * 0.9, overlayImage.sourceSize.height)
height: Math.min(parent.height * 0.9, (parent.width * 0.9) * proportion, overlayImage.sourceSize.height)
width: height/proportion
Image {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment