diff --git a/js/jquery.prettyPhoto.js b/js/jquery.prettyPhoto.js index 0436a49..d6129b1 100644 --- a/js/jquery.prettyPhoto.js +++ b/js/jquery.prettyPhoto.js @@ -20,6 +20,7 @@ allow_expand: true, /* Allow the user to expand a resized image. true/false */ default_width: 500, default_height: 344, + topOffset: 0, /* offset the lightbox from the top */ counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */ theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */ horizontal_padding: 20, /* The padding on each side of the picture */ @@ -508,7 +509,7 @@ // Resize picture the holder $pp_pic_holder.animate({ - 'top': projectedTop, + 'top': projectedTop + this.settings.topOffset, 'left': ((windowWidth/2) - (pp_dimensions['containerWidth']/2) < 0) ? 0 : (windowWidth/2) - (pp_dimensions['containerWidth']/2), width:pp_dimensions['containerWidth'] },settings.animation_speed,function(){