summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-03-05 21:28:48 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-03-05 21:28:48 +0100
commitc9bcf3a7c0eec55c4cf8f8b8f653370e64907efb (patch)
treeaf591ae57c8447a32c94dae0f7281632a0879b69 /resources
parentFix a few label colors (diff)
downloadnheko-c9bcf3a7c0eec55c4cf8f8b8f653370e64907efb.tar.xz
Prevent big images from becoming square in overlay
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/dialogs/ImageOverlay.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/dialogs/ImageOverlay.qml b/resources/qml/dialogs/ImageOverlay.qml
index b914829e..69a80eb3 100644
--- a/resources/qml/dialogs/ImageOverlay.qml
+++ b/resources/qml/dialogs/ImageOverlay.qml
@@ -51,8 +51,8 @@ Window {
         property int imgSrcWidth: (imageOverlay.originalWidth && imageOverlay.originalWidth > 100) ? imageOverlay.originalWidth : Screen.width
         property int imgSrcHeight: imageOverlay.proportionalHeight ? imgSrcWidth * imageOverlay.proportionalHeight : Screen.height
 
-        height: Math.min(parent.height || Screen.height, imgSrcHeight)
-        width: Math.min(parent.width || Screen.width, imgSrcWidth)
+        height: imgSrcHeight
+        width: imgSrcWidth
 
         x: (parent.width - width) / 2
         y: (parent.height - height) / 2