summary refs log tree commit diff
path: root/resources/qml/dialogs/ImageOverlay.qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/dialogs/ImageOverlay.qml')
-rw-r--r--resources/qml/dialogs/ImageOverlay.qml13
1 files changed, 6 insertions, 7 deletions
diff --git a/resources/qml/dialogs/ImageOverlay.qml b/resources/qml/dialogs/ImageOverlay.qml

index dff96f35..d245aca2 100644 --- a/resources/qml/dialogs/ImageOverlay.qml +++ b/resources/qml/dialogs/ImageOverlay.qml
@@ -29,18 +29,17 @@ Window { } - Item { id: imgContainer - property int imgSrcWidth: (originalWidth && originalWidth > 200) ? originalWidth : Screen.width - property int imgSrcHeight: proportionalHeight ? imgSrcWidth * proportionalHeight : Screen.height + 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, imgSrcHeight) - width: Math.min(parent.width, imgSrcWidth) + height: Math.min(parent.height || Screen.height, imgSrcHeight) + width: Math.min(parent.width || Screen.width, imgSrcWidth) - x: (parent.width - width) - y: (parent.height - height) + x: (parent.width - width) / 2 + y: (parent.height - height) / 2 Image { id: img