src/aria/templates/TemplateCtxt.js
function (scrollPositions) {
            var containerDiv = this.getContainerDiv();
            if (containerDiv && scrollPositions) {
                if (scrollPositions.hasOwnProperty('scrollLeft') && scrollPositions.scrollLeft != null) {
                    containerDiv.scrollLeft = scrollPositions.scrollLeft;
                }
                if (scrollPositions.hasOwnProperty('scrollTop') && scrollPositions.scrollTop != null) {
                    containerDiv.scrollTop = scrollPositions.scrollTop;
                }
            }
        }
function (scrollPositions) {
            var containerDiv = this.getContainerDiv();
            if (containerDiv && scrollPositions) {
                if (scrollPositions.hasOwnProperty('scrollLeft') && scrollPositions.scrollLeft != null) {
                    containerDiv.scrollLeft = scrollPositions.scrollLeft;
                }
                if (scrollPositions.hasOwnProperty('scrollTop') && scrollPositions.scrollTop != null) {
                    containerDiv.scrollTop = scrollPositions.scrollTop;
                }
            }
        }
function ( scrollPositions ) { var containerDiv = this . getContainerDiv ( ) ; if ( containerDiv && scrollPositions ) { if ( scrollPositions . hasOwnProperty ( 'scrollLeft' ) && scrollPositions . scrollLeft != null ) { containerDiv . scrollLeft = scrollPositions . scrollLeft ; } if ( scrollPositions . hasOwnProperty ( 'scrollTop' ) && scrollPositions . scrollTop != null ) { containerDiv . scrollTop = scrollPositions . scrollTop ; } } }
Set the scrollTop and the scrollLeft values of the HTMLElement that contains the div of the template
@param {Object} contains the desired scrollTop and scrollLeft values
Set the scrollTop and the scrollLeft values of the HTMLElement that contains the div of the template