Browse Source

Fix issue with lightbox background not expanding properly and bottom footer being off in lightbox

tags/v1.0.0
Isaac Bythewood 11 years ago
parent
commit
1538579fe5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      pinry/static/js/lightbox.js

+ 3
- 0
pinry/static/js/lightbox.js View File

@@ -47,8 +47,11 @@ $(window).load(function() {
$('.lightbox-wrapper').css({
'width': context.image.standard.width,
'margin-top': 70,
'margin-bottom': 70,
'margin-left': -context.image.standard.width/2
});
if ($('.lightbox-wrapper').height()+140 > $(window).height())
$('.lightbox-background').height($('.lightbox-wrapper').height()+140);

box.click(function() {
$(this).fadeOut(200);


Loading…
Cancel
Save