public/javascripts/yui/datatable/datatable.js
function(to) {
        var td = this.getTdEl(to);
        if(td) {
            this.clearScrollPositions();
            this.getBdContainerEl().scrollLeft = td.offsetLeft;
            this.getBdContainerEl().scrollTop = td.parentNode.offsetTop;
        }
        else {
            var tr = this.getTrEl(to);
            if(tr) {
                this.clearScrollPositions();
                this.getBdContainerEl().scrollTop = tr.offsetTop;
            }
        }
}
function(to) {
        var td = this.getTdEl(to);
        if(td) {
            this.clearScrollPositions();
            this.getBdContainerEl().scrollLeft = td.offsetLeft;
            this.getBdContainerEl().scrollTop = td.parentNode.offsetTop;
        }
        else {
            var tr = this.getTrEl(to);
            if(tr) {
                this.clearScrollPositions();
                this.getBdContainerEl().scrollTop = tr.offsetTop;
            }
        }
}
function ( to ) { var td = this . getTdEl ( to ) ; if ( td ) { this . clearScrollPositions ( ) ; this . getBdContainerEl ( ) . scrollLeft = td . offsetLeft ; this . getBdContainerEl ( ) . scrollTop = td . parentNode . offsetTop ; } else { var tr = this . getTrEl ( to ) ; if ( tr ) { this . clearScrollPositions ( ) ; this . getBdContainerEl ( ) . scrollTop = tr . offsetTop ; } } }
Scrolls to given row or cell

@method scrollTo
@param to {YAHOO.widget.Record | HTMLElement } Itme to scroll to.
Scrolls to given row or cell