Commit 4efed776 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't show white space around the screenshot when it doesn't fit

BUG: 387819
parent 6fe62867
......@@ -49,8 +49,9 @@ 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)
width: Math.min(parent.width * 0.9, overlayImage.sourceSize.width)
width: height/proportion
Image {
id: overlayImage
......
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