summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index 618c556e..a91f021e 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -6,6 +6,18 @@
});
};
+ // Make the height of all items the same as the tallest item within the set
+ $.fn.equal_heights = function() {
+ var tallest_height = 0;
+ $(this).each(function(){
+ if ($(this).height() > tallest_height) {
+ tallest_height = $(this).height();
+ }
+ });
+ return $(this).height(tallest_height);
+ };
+
+
// Vertically align a block element's content
$.fn.gallery_valign = function(container) {
return this.each(function(i){