zoxon
4/6/2017 - 3:41 AM

Get the height of an element

Get the height of an element

/**
 * Get the height of an element.
 * @private
 * @param  {Node} elem The element to get the height of
 * @return {Number}    The element's height in pixels
 */
var getHeight = function ( elem ) {
	return Math.max( elem.scrollHeight, elem.offsetHeight, elem.clientHeight );
};