product main (shown in fancybox) picture autoresize disabling

Started by shkiv, August 02, 2013, 13:55:45 PM

Previous topic - Next topic

shkiv

Hi all.
viruemart 2.0.22
joomla 2.5.13

product main picture, that is shown in fancybox, is resised automaticly in order to show whole picture in browser window.
ex.: if i`m looking 4096x2048 picture on the screen with resolution 1024x768 this picture will be resised and i will see whole picture.

how can i disable this function?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

shkiv

link

original image size is 808px × 1 707px scaled to 382px × 809px

screenshot

ps. sorry for pure english =(

shkiv

i`m happy, i`ve solved it.
to disable autoscale:
1) edit file /components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js
find string "autoScale = true" and set it false
2) same in file /components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.js

my general trouble was that i tyred to find an answer at joomla and virtuemart resources, but it was first line in google, when i asked "fancybox disable scale" instead of "virtuemart disable scale"
:)

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart