function _getAbsoluteHeight() {
            var allElements = document.querySelectorAll('body *');
            var maxBottomVal = 0;

            Array.prototype.forEach.call(allElements, function(el) {
                var styles = window.getComputedStyle(el);
                var marginBottom = 0;
                if (styles.marginBottom &&
                    !isNaN(parseInt(styles.marginBottom), 10))
                {
                    marginBottom = parseInt(styles.marginBottom, 10);
                }

                var posBottom = el.getBoundingClientRect().bottom;
                var elBottom = marginBottom + posBottom;

                if (elBottom > maxBottomVal) {
                    maxBottomVal = elBottom; 
                }
            });

            return Math.ceil(maxBottomVal);
        }
/**
         * Get the bottom most position of all elements on the page.
         * NOTE: Absolute positioned elements are removed from the page flow
         *       so are not included in the .innerHeight of the page.
         *       Therefore, the height is retrieved via looping through
         *       every element and finding the one with greatest bounding
         *       bottom value. There is a performance hit relative to the number
         *       of elements on the page.
         *
         * @return {int} Greatest value of an elements bounding bottom.
         */
Get the bottom most position of all elements on the page.
NOTE: Absolute positioned elements are removed from the page flow
so are not included in the .innerHeight of the page.
Therefore, the height is retrieved via looping through
every element and finding the one with greatest bounding
bottom value. There is a performance hit relative to the number
of elements on the page.

@return {int} Greatest value of an elements bounding bottom.
Get the bottom most position of all elements on the page . NOTE : Absolute positioned elements are removed from the page flow so are not included in the . innerHeight of the page . Therefore the height is retrieved via looping through every element and finding the one with greatest bounding bottom value . There is a performance hit relative to the number of elements on the page . @return { int } Greatest value of an elements bounding bottom .
function _getAbsoluteHeight() {
            var allElements = document.querySelectorAll('body *');
            var maxBottomVal = 0;
            Array.prototype.forEach.call(allElements, function(el) {
                var styles = window.getComputedStyle(el);
                var marginBottom = 0;
                if (styles.marginBottom &&
                    !isNaN(parseInt(styles.marginBottom), 10))
                {
                    marginBottom = parseInt(styles.marginBottom, 10);
                }
                var posBottom = el.getBoundingClientRect().bottom;
                var elBottom = marginBottom + posBottom;
                if (elBottom > maxBottomVal) {
                    maxBottomVal = elBottom; 
                }
            });
            return Math.ceil(maxBottomVal);
        }
function _getAbsoluteHeight ( ) { var allElements = document . querySelectorAll ( 'body *' ) ; var maxBottomVal = 0 ; Array . prototype . forEach . call ( allElements , function ( el ) { var styles = window . getComputedStyle ( el ) ; var marginBottom = 0 ; if ( styles . marginBottom && ! isNaN ( parseInt ( styles . marginBottom ) , 10 ) ) { marginBottom = parseInt ( styles . marginBottom , 10 ) ; } var posBottom = el . getBoundingClientRect ( ) . bottom ; var elBottom = marginBottom + posBottom ; if ( elBottom > maxBottomVal ) { maxBottomVal = elBottom ; } } ) ; return Math . ceil ( maxBottomVal ) ; }
Get the bottom most position of all elements on the page.
Get the bottom most position of all elements on the page .