This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Equalise the height of boxes (uses min-height). | |
*/ | |
jQuery.fn.balanceHeights = function() { | |
// Get max height from list then apply to all. | |
var heights = []; | |
this.each( function () { | |
heights.push(jQuery(this).outerHeight()); | |
}); | |
return this.css('min-height', Math.max.apply({}, heights)); |