src/console/simpleyui.js
function(node, doc) {
        doc = doc || (node) ? Y_DOM._getDoc(node) : Y.config.doc; // perf optimization
        var dv = doc.defaultView,
            pageOffset = (dv) ? dv.pageYOffset : 0;
        return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop, pageOffset);
    }
function(node, doc) {
        doc = doc || (node) ? Y_DOM._getDoc(node) : Y.config.doc; // perf optimization
        var dv = doc.defaultView,
            pageOffset = (dv) ? dv.pageYOffset : 0;
        return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop, pageOffset);
    }
function ( node , doc ) { doc = doc || ( node ) ? Y_DOM . _getDoc ( node ) : Y . config . doc ; // perf optimization var dv = doc . defaultView , pageOffset = ( dv ) ? dv . pageYOffset : 0 ; return Math . max ( doc [ DOCUMENT_ELEMENT ] . scrollTop , doc . body . scrollTop , pageOffset ) ; }
Amount page has been scroll vertically
@method docScrollY
@return {Number} The current amount the screen is scrolled vertically.
Amount page has been scroll vertically