Created
August 16, 2013 15:56
-
-
Save kisin/6251104 to your computer and use it in GitHub Desktop.
building columns of equal height
This file contains hidden or 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
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