From 1538579fe5bb77584d80ac07fe3c47ac0efaf606 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Tue, 5 Mar 2013 20:44:13 +0000 Subject: [PATCH] Fix issue with lightbox background not expanding properly and bottom footer being off in lightbox --- pinry/static/js/lightbox.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pinry/static/js/lightbox.js b/pinry/static/js/lightbox.js index 5a16787..0dadd86 100644 --- a/pinry/static/js/lightbox.js +++ b/pinry/static/js/lightbox.js @@ -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);