aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-03-14 00:38:29 +0300
committerlink2xt <link2xt@testrun.org>2021-03-14 00:38:29 +0300
commitccbfe1f74a558dd7c26f04c53bbe63c05d514633 (patch)
treee2d9748d26d1e045fa704eeb65f364be71d91a7f
parente8633b7a13de9fcb56ee29a9fc36d5520c2514a9 (diff)
downloadkdeltachat-ccbfe1f74a558dd7c26f04c53bbe63c05d514633.tar.gz
kdeltachat-ccbfe1f74a558dd7c26f04c53bbe63c05d514633.zip
Use PreserveAspectCrop instead of PreserveAspectFit for images
This seems to be the easiest way to avoid space above and below the image.
-rw-r--r--qml/Message.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qml/Message.qml b/qml/Message.qml
index 9134a72..6628810 100644
--- a/qml/Message.qml
+++ b/qml/Message.qml
@@ -34,7 +34,7 @@ RowLayout {
source: "file:" + messageObject.message.file
sourceSize.width: messageObject.message.width
sourceSize.height: messageObject.message.height
- fillMode: Image.PreserveAspectFit
+ fillMode: Image.PreserveAspectCrop
Layout.maximumWidth: messageObject.width
}
Label {