elevatezoom icon indicating copy to clipboard operation
elevatezoom copied to clipboard

Wrong height of zoomContainer

Open kanaxis opened this issue 11 years ago • 5 comments

a.nzHeight has wrong size:

a.zoomContainer=d('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+a.nzOffset.left+"px;top:"+a.nzOffset.top+"px;height:"+a.nzHeight+"px;width:"+a.nzWidth+'px;">');

kanaxis avatar Jul 16 '13 20:07 kanaxis

Can you give an example of the issue?

elevateweb avatar Jul 16 '13 23:07 elevateweb

http://padesire.ru/category/cosm/body/soap/podarochnyi-nabor_2/view.htm Height of zoomContainer for default image calculated is true. If click another images in gallery, then height is false. zoomContainer overrides gallery of images.

kanaxis avatar Jul 18 '13 13:07 kanaxis

Same issue for me. When using swaptheimage with an image that has a different height, the zoomed-in image does not use up the right space, it uses the height of the image that was there before. I use inner as zoomType.

carolineschnapp avatar May 31 '14 03:05 carolineschnapp

Hey, I found the solution! Add this option to your config constrainType: 'width'

jdme avatar Oct 03 '14 01:10 jdme

what is constrainType ?

dadabarbast avatar Jan 08 '18 12:01 dadabarbast