Browse Source

Fix height of lightbox

tags/v1.4.1
Isaac Bythewood 8 years ago
parent
commit
9185e946ac
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pinry/static/js/lightbox.js

+ 2
- 2
pinry/static/js/lightbox.js View File

@@ -6,7 +6,7 @@
* It also has a nice parallax view mode where the top scrolls and the * It also has a nice parallax view mode where the top scrolls and the
* background stays stationary. * background stays stationary.
* Authors: Pinry Contributors * Authors: Pinry Contributors
* Updated: Feb 26th, 2013
* Updated: Feb 4th, 2016
* Require: jQuery, Pinry JavaScript Helpers * Require: jQuery, Pinry JavaScript Helpers
*/ */


@@ -61,7 +61,7 @@ $(window).load(function() {
'margin-left': -context.image.standard.width/2 'margin-left': -context.image.standard.width/2
}); });
if ($('.lightbox-wrapper').height()+140 > $(window).height()) if ($('.lightbox-wrapper').height()+140 > $(window).height())
$('.lightbox-background').height($('.lightbox-wrapper').height()+140);
$('.lightbox-background').height($('.lightbox-wrapper').height()+160);


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


Loading…
Cancel
Save