Created
April 19, 2012 16:05
-
-
Save dfadler/2422010 to your computer and use it in GitHub Desktop.
Set Column Height
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
function setColumnHeight(obj1, obj2) { | |
if($(obj1).height() < $(obj2).height()) { | |
$(obj1) | |
.css({ | |
'height': $(obj2).height() | |
}); | |
} else { | |
$(obj2) | |
.css({ | |
'height': $(obj1).height() | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment