Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3738 Zobrazení

We use Odoo 8.

I have installed the website_multi_image_zoom module to have multi images on product pages on the frontend.

The module is now working. But often the main image is stretched (see image below).

How could we avoid this?

Thanks to help


Avatar
Zrušit
Autor Nejlepší odpověď

I have commented this line in the file multizoom.js of the module website_multi_image_zoom for Odoo 8.


//$imgObj.attr('src', this.src).css({width: w || options.width || this.width, height: (h = +(h || options.height || this.height))});


This line set a fixed height and width for the main image on load.
Now, images are not stretched.
Thanks all

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
říj 16
9288
2
čvn 18
4941
1
bře 15
6079
0
pro 23
1476
0
pro 17
3536