Created
April 13, 2011 13:01
-
-
Save johnantoni/917493 to your computer and use it in GitHub Desktop.
setAllToMaxHeight (jquery)
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
$.fn.setAllToMaxHeight = function(){ | |
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) ); | |
} | |
// usage: $(‘div.unevenheights’).setAllToMaxHeight() | |
// http://www.broken-links.com/2009/01/20/very-quick-equal-height-columns-in-jquery/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @rickydazla, @johnantoni
Any idea on how to trigger
setAllToMaxHeight()
onorientationchange
without including the entire jquery mobile?