Sha256: cdcdc2b5c70245ec110859df22d7724b62c1c8e09cd2468a70a82d7e5f3bcaea
Contents?: true
Size: 655 Bytes
Versions: 21
Compression:
Stored size: 655 Bytes
Contents
// make sure the $ is pointing to JQuery and not some other library (function($){ // add a new method to JQuery $.fn.equalHeight = function() { // find the tallest height in the collection // that was passed in (.column) tallest = 0; this.each(function(){ thisHeight = $(this).height(); if( thisHeight > tallest) tallest = thisHeight; }); // set each items height to use the tallest value found this.each(function(){ $(this).height(tallest); }); } })(jQuery);
Version data entries
21 entries across 21 versions & 3 rubygems