Skip to content

Instantly share code, notes, and snippets.

@felixzapata
Last active October 10, 2015 11:38
Show Gist options
  • Save felixzapata/3684198 to your computer and use it in GitHub Desktop.
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
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