Closed Svoeobraznaya closed 1 year ago
The problem occurs on line 321-323 of the file code lg-zoom.umd.js
$image .css('width', $image.get().naturalWidth + 'px') .css('height', $image.get().naturalHeight + 'px');
Figured it out, I had to connect all the plugin styles.
Description
The zoom plugin violates the aspect ratio of the original image. I can't understand the reasons. In the lightbox the image is displayed at 627627 px, aspect ratio 1:1. When I activate zoom, the image is stretched disproportionately, becomes 1000627 px, aspect ratio 1000:627. The image looks stretched in width.
Steps to reproduce
[Clear steps describing how to reproduce the issue. Please link to a demo project (Your website URL, codepen, or jsfiddle) if possible.](https://elloi.ru/bahroma-anka-5302-9382) To see the problem, follow the link, open the image in the lightbox and click on the zoom button.
JS code that you use to initialize lightGallery.
Sample HTML markup
Additional context