Skip to content

Instantly share code, notes, and snippets.

@andrewlaskey
Created April 4, 2013 16:40
Show Gist options
  • Save andrewlaskey/5311942 to your computer and use it in GitHub Desktop.
Save andrewlaskey/5311942 to your computer and use it in GitHub Desktop.
Set All To Max Height Function
//Paul Irish - http://www.broken-links.com/2009/01/20/very-quick-equal-height-columns-in-jquery/
$.fn.setAllToMaxHeight = function(){
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment