How disable a vertical scrollbar in the browser when show the photo?
  • 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?

    Thanks
  • I'm having the same problem. Any solutions for this? I'm loading an iframe.
  • Hi,

    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();
    }

    $pp_overlay
    .css({
    'opacity':0,
    'height':$aux
    })
    .bind('click',function(){
    if(!settings.modal)
    $.prettyPhoto.close();
    });

    Hope this is of any help.
    Thanks

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!