Skip to content

Instantly share code, notes, and snippets.

@kisin
Created August 16, 2013 15:56
Show Gist options
  • Save kisin/6251104 to your computer and use it in GitHub Desktop.
Save kisin/6251104 to your computer and use it in GitHub Desktop.
building columns of equal height
var getMaxHeight = function ($elms) {
var maxHeight = 0;
$elms.each(function () {
// In some cases you may want to use outerHeight() instead
var height = $(this).height();
if (height > maxHeight) {
maxHeight = height;
}
});
return maxHeight;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment