Phoca Gallery Slideshow Vertical Center
Posted: 30 Nov 2012, 17:51
Hi, I'm trying to vertically center an image in the slideshow box editing fadeslideshow.js.
I solved replacing this code:
with this:
but when the image is narrower than the box i see the previous image from behind. Could you help me to resolve? Is possible to enlarge smaller images?
Thanks.
I solved replacing this code:
Code: Select all
setting.$gallerylayers=$('<div class="gallerylayer"></div><div class="gallerylayer"></div>') //two stacked DIVs to display the actual slide
.css({position:'absolute', left:0, top:'0, width:'100%', height:'100%', background:'black'})
Code: Select all
setting.$gallerylayers=$('<div class="gallerylayer"></div><div class="gallerylayer"></div>') //two stacked DIVs to display the actual slide
.css({position:'absolute', left:0, top:'50%', width:'100%', height:'100%', background:'black'})
Thanks.