Last active
November 1, 2018 08:18
-
-
Save ABooooo/7fceab13909ff7dcc75d to your computer and use it in GitHub Desktop.
same height all columns
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
setTimeout(function(){ | |
var sameHeightTop = $(".subBoxes"); | |
if (sameHeightTop.length !== 0) { | |
sameHeightTop.each(function () { | |
var tallest = 0; | |
var sameHeightChildren = $(this).find(".subBox"); | |
sameHeightChildren.each(function () { | |
var thisHeight = $(this).height(); | |
if (thisHeight > tallest) { | |
tallest = thisHeight; | |
} | |
}); | |
sameHeightChildren.height(tallest); | |
}); | |
} | |
},250); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment