Resize with API
  • I added this to be able to resize PP with the API.

    $.prettyPhoto.resize = function(width,height){
    windowHeight = $(window).height();
    windowWidth = $(window).width();
    var tmpDoResize = doresize
    doresize = false; // Make sure the dimensions are not resized.
    pp_dimensions = pp_dimensions = _fitToViewport(width,height);
    doresize = tmpDoResize; // Reset the dimensions
    _showContent();
    }

Howdy, Stranger!

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

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter