summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-12-25 16:49:55 -0800
committerBharat Mediratta <bharat@menalto.com>2011-12-25 16:49:55 -0800
commit29d16f7f9f8646e7b0a691c0292f9dbd5b5c093a (patch)
tree742bb587279f8958aae9e30fe6e3719153bd5738 /lib
parent4839c841e252b915b55be995743826d2eff013a3 (diff)
parentb07b4759c4f48d24343a53e1b2ca85e2d39811d2 (diff)
Merge pull request #64 from ophian/patch-1
added if (nh < 1) { var nh = 0; } Fixes #1813
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);
});
};