Skip to content

Commit

Permalink
Merge pull request #64 from ophian/patch-1
Browse files Browse the repository at this point in the history
added 	  if (nh < 1) { var nh = 0; }

Fixes #1813
  • Loading branch information
bharat committed Dec 26, 2011
2 parents 4839c84 + b07b475 commit 29d16f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/gallery.common.js
Expand Up @@ -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);
});
};
Expand Down

0 comments on commit 29d16f7

Please sign in to comment.