Permalink
Browse files

added if (nh < 1) { var nh = 0; }

to start album upper border not as nh = -n
  • Loading branch information...
1 parent 94eef9e commit b07b4759c4f48d24343a53e1b2ca85e2d39811d2 @ophian ophian committed Nov 5, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/gallery.common.js
View
@@ -33,6 +33,7 @@
var elh = $(el).height();
var ph = $(this).height();
var nh = (ph - elh) / 2;
+ if (nh < 1) { var nh = 0; }
$(el).css('margin-top', nh);
});
};

0 comments on commit b07b475

Please sign in to comment.