Skip to content

Instantly share code, notes, and snippets.

@fakefarm
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakefarm/8579cf74dbc6d0e974d8 to your computer and use it in GitHub Desktop.
Save fakefarm/8579cf74dbc6d0e974d8 to your computer and use it in GitHub Desktop.
Get the right height
// Get proper container height
function getContainerHeight(){
var myHeight = $('#my-header').outerHeight(),
var yourHeight = $('#deal-details').height(),
containerHeight = ( myHeight > yourHeight ? myHeight : yourHeight );
return containerHeight;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment