Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3754 Ansichten

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
Verwerfen
Autor Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Okt. 16
9299
2
Juni 18
4944
1
März 15
6081
0
Dez. 23
1480
0
Dez. 17
3545