summary refs log tree commit diff
path: root/resources/qml/Root.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@ymail.com>2022-04-10 04:10:32 +0200
committerNicolas Werner <nicolas.werner@ymail.com>2022-04-10 04:10:32 +0200
commit85f0ffb6bf493efcafff97335e88cd51297e45c9 (patch)
tree0718adc66dae676c9f38ad8f9b02c4162c5cfdb2 /resources/qml/Root.qml
parentMake sender_key in key requests optional (diff)
downloadnheko-85f0ffb6bf493efcafff97335e88cd51297e45c9.tar.xz
Remove boundary handling in image overlay
They hurt more than they are helping
Diffstat (limited to 'resources/qml/Root.qml')
-rw-r--r--resources/qml/Root.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml
index cd97cce2..72f30b7a 100644
--- a/resources/qml/Root.qml
+++ b/resources/qml/Root.qml
@@ -288,7 +288,9 @@ Pane {
             var dialog = imageOverlay.createObject(timelineRoot, {
                 "room": room,
                 "eventId": eventId,
-                "url": url
+                "url": url,
+                "originalWidth": originalWidth ?? 0,
+                "proportionalHeight": proportionalHeight ?? 0
             });
             dialog.showFullScreen();
             destroyOnClose(dialog);