packages/cdp-mobile/dist/cdp.js
function() {
            var $el = this.element,
                header = $el.hasClass( "ui-header" ),
                offset = Math.abs( $el.offset().top - this.window.scrollTop() );
            if ( !header ) {
                offset = Math.round( offset - this.window.height() + $el.outerHeight() ) - 60;
            }
            return offset;
        }
function() {
            var $el = this.element,
                header = $el.hasClass( "ui-header" ),
                offset = Math.abs( $el.offset().top - this.window.scrollTop() );
            if ( !header ) {
                offset = Math.round( offset - this.window.height() + $el.outerHeight() ) - 60;
            }
            return offset;
        }
function ( ) { var $el = this . element , header = $el . hasClass ( "ui-header" ) , offset = Math . abs ( $el . offset ( ) . top - this . window . scrollTop ( ) ) ; if ( ! header ) { offset = Math . round ( offset - this . window . height ( ) + $el . outerHeight ( ) ) - 60 ; } return offset ; }
Utility class for checking header and footer positions relative to viewport
Utility class for checking header and footer positions relative to viewport