Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3749 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
lokak. 16
9295
2
kesäk. 18
4944
1
maalisk. 15
6081
0
jouluk. 23
1477
0
jouluk. 17
3539