summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2012-01-22 17:42:28 +0000
committerNathan Kinkade <nath@nkinka.de>2012-01-22 17:42:28 +0000
commit9340b55ad9eeba3a295cada4731911a570c7c9d5 (patch)
tree3fe1260a8fd0845d264f7a19fe8f5da8072e9cc7 /lib
parent0bec03301b38e1ed2d7a73391e065a787e0e3510 (diff)
parent3a3b154b317814dcbd4ea0c1641b64e386cf85a9 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index 697a33cb..b499a2cd 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);
});
};