Last active
October 10, 2015 11:38
-
-
Save felixzapata/3684198 to your computer and use it in GitHub Desktop.
averiguo el elemento más alto de filas de 2 elementos. sacado de StackOverflow
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
var fixes = { | |
controlHeight:function(obj){ | |
var elems = obj.find("article"), | |
len = elems.length; | |
for(var i = 0; i < len; i+=2) { | |
var divs = elems.slice(i, i+2), | |
height = Math.max(divs.eq(0).height(), divs.eq(1).height()); | |
divs.css('min-height', height); | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment