From b07b4759c4f48d24343a53e1b2ca85e2d39811d2 Mon Sep 17 00:00:00 2001 From: Ian Date: Sat, 5 Nov 2011 12:50:19 +0100 Subject: [PATCH] added if (nh < 1) { var nh = 0; } to start album upper border not as nh = -n --- lib/gallery.common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 697a33cb3b..b499a2cdc7 100644 --- a/lib/gallery.common.js +++ b/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); }); };