Skip to content

Instantly share code, notes, and snippets.

@breakerfall
Forked from DESIGNfromWITHIN/setAllToMaxHeight.js
Created January 29, 2013 04:34
Show Gist options
  • Save breakerfall/4661839 to your computer and use it in GitHub Desktop.
Save breakerfall/4661839 to your computer and use it in GitHub Desktop.
$.fn.setAllToMaxHeight = function(){
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
}
// usage: $(‘div.unevenheights’).setAllToMaxHeight();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment