diff --git a/src/lib/ui/core/ImageViewer/ImageViewer.svelte b/src/lib/ui/core/ImageViewer/ImageViewer.svelte index 431cb69e5..9c2df4250 100644 --- a/src/lib/ui/core/ImageViewer/ImageViewer.svelte +++ b/src/lib/ui/core/ImageViewer/ImageViewer.svelte @@ -35,8 +35,8 @@ imgProps = { src: img.src, alt: img.alt, - width: img.naturalWidth, - height: img.naturalHeight, + width: img.offsetWidth, + height: img.offsetHeight, el: img, } }