From 1f0fcedc9dfa1ecc86a3ab59418c1e151425a1b7 Mon Sep 17 00:00:00 2001 From: Dariusz Olszewski Date: Sun, 10 Mar 2024 19:01:31 +0100 Subject: [PATCH] fix(images): Force width/height even when zoomRatio==1 Signed-off-by: Dariusz Olszewski --- src/components/Images.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Images.vue b/src/components/Images.vue index cad3f3930..896cfd28e 100644 --- a/src/components/Images.vue +++ b/src/components/Images.vue @@ -154,7 +154,10 @@ export default { }, imgStyle() { if (this.zoomRatio === 1) { - return {} + return { + height: this.zoomHeight + 'px', + width: this.zoomWidth + 'px', + } } return { marginTop: Math.round(this.shiftY * 2) + 'px',