Hi,
when show the photo with prettyphoto effect appear in my browser a vertical scrollbar even the pic is very small.
Height of background? How can resolve this?
I was having the same problem, but only with IE. I found a solution, sure not the best, but does the job. I reduced the overly height 4 pixels when IE (you can try more if not enough). On jquery.prettyPhoto.js:
function _resizeOverlay() {
windowHeight = $(window).height();
windowWidth = $(window).width();
if (navigator.appName=="Microsoft Internet Explorer"){
$aux = $(document).height()-4;
}
else {
$aux = $(document).height();
}
$pp_overlay.css({
'height':$aux
});
};
function _buildOverlay(){
// Inject the markup
$('body').append(settings.markup);
// Set my global selectors
$pp_pic_holder = $('.pp_pic_holder');
$ppt = $('.ppt');
$pp_overlay = $('div.pp_overlay');
$pp_pic_holder.attr('class','pp_pic_holder ' + settings.theme); // Set the proper theme
if (navigator.appName=="Microsoft Internet Explorer"){
$aux = $(document).height()-4;
}
else {
$aux = $(document).height();
}