跳至内容
菜单
此问题已终结
1 回复
3789 查看

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


形象
丢弃
编写者 最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
2
10月 16
9325
2
6月 18
4957
1
3月 15
6121
0
12月 23
1507
0
12月 17
3578