Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3791 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
жовт. 16
9330
2
черв. 18
4960
1
бер. 15
6125
0
груд. 23
1512
0
груд. 17
3581