Skip to content Skip to sidebar Skip to footer

Fixed Window-size In Prettyphoto

I'm using prettyphoto for a photo gallery in a django-app. My Images have a maximum height/width (with sorl-thumbnail), but the apect-ratios are different. Because of that, the win

Solution 1:

There may not be any way to do what you want without modifying the prettyPhoto.js script.

There are some options to prettyPhoto you could play with, to see if you can get the desired effect:

$(document).ready(function(){
  $("a[rel^='prettyPhoto']").prettyPhoto({
    allow_resize: true, /* Resize the photos bigger than viewport. true/false */default_width: 500,
    default_height: 344,
    horizontal_padding: 20
  });
});

Good luck!

ian.

Post a Comment for "Fixed Window-size In Prettyphoto"