VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Piwo on January 20, 2016, 17:45:39 PM

Title: Pop up Product Image - wrong size (distorted)
Post by: Piwo on January 20, 2016, 17:45:39 PM
Joomla! 3.4.8
VirtueMart 3.0.12
PHP Version   5.6.17

Hey there,

I got a problem with my product images: When I click on the image a new window opens but the image has wrong size (distorted) - it stretches the image. Please see:

http://casa-eurabia.olifants.eu/shop/mosaiktische/mosaiktisch-3-detail

thanks!





 
Title: Re: Pop up Product Image - wrong size (distorted)
Post by: jenkinhill on January 20, 2016, 18:01:58 PM
Learn to use Firebug - that would enable you to work out simple display issues.  http://forum.virtuemart.net/index.php?topic=116620.0

The problem is this:
#fancybox-content {
    height: 600px !important;
}
Title: Re: Pop up Product Image - wrong size (distorted)
Post by: Piwo on January 21, 2016, 10:22:20 AM
Hey jenkinhill, thanks for the quick reply. You are right!
In my other website it has width: 700px; height: 700px. But In the VM backend I can not find the section where to change the size of the fancy box. Do you know where I can find the configuration for fancy box size?

Thanks!
Title: Re: Pop up Product Image - wrong size (distorted)
Post by: jenkinhill on January 21, 2016, 12:22:24 PM
Use Firebug to identify the css file.  It is not in VM it is in your override.css

http://getfirebug.com/css
Title: Re: Pop up Product Image - wrong size (distorted)
Post by: VMTemplates.net on January 21, 2016, 18:32:39 PM
Hi,

problem is caused by the template you are using: http://casa-eurabia.olifants.eu/templates/gk_storefront/css/override.css on line 299.
Remove this code:

/* Design ask a question form */
#fancybox-content {
   height: 600px !important;
}

Title: Re: Pop up Product Image - wrong size (distorted)
Post by: Piwo on January 27, 2016, 21:19:49 PM
Yes, I did this in the css because I wanted to get the 'ask a question' frame without scrollbar. How can I do this?
Title: Re: Pop up Product Image - wrong size (distorted)
Post by: GJC Web Design on January 27, 2016, 21:23:18 PM
height:100% !important;  ?