Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

to start album upper border not as nh = -n
  • Loading branch information...
commit b07b4759c4f48d24343a53e1b2ca85e2d39811d2 1 parent 94eef9e
@ophian ophian authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/gallery.common.js
View
1  lib/gallery.common.js
@@ -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);
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.