rem: line = line - total_viz + headerRows; 
add: line = line - viz + headerRows; 
context: function bov_scrollto (line, align){    var headerRows = 1;        var first = this.tree.getFirstVisibleRow();    var last  = this.tree.getLastVisibleRow();    var viz   = last - first - headerRows; /* total number of visible rows */    /* all rows are visible, nothing to scroll */    if (first == 0 && last > this.rowCount)        return;        /* tree lines are 0 based, we accept one based lines, deal with it */    --line;    /* safety clamp */    if (line < 0)        line = 0;    if (line > this.rowCount)        line = this.rowCount;        if (align < 0)    {        if (line > this.rowCount - viz) /* overscroll, can't put a row from */            line = this.rowCount - viz; /* last page at the top. */        this.tree.scrollToRow(line);    }    else if (align > 0)    {        if (line < viz) /* underscroll, can't put a row from the first page at */            line = 0;   /* the bottom. */        else            line = line - total_viz + headerRows;                this.tree.scrollToRow(line);    }    else    {        var half_viz = viz / 2;        /* lines past this line can't be centered without causing the tree         * to show more rows than we have. */        var lastCenterable = this.rowCount - half_viz;        if (line > lastCenterable)            line = lastCenterable;        /* lines before this can't be centered without causing the tree         * to attempt to display negative rows. */        else if (line < half_viz)            line = half_viz;        this.tree.scrollToRow(line - half_viz);    }                    }       
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c253059afafb09ee6b27e3767bb1e487e050ba0f/tree-utils.js/clean/extensions/venkman/resources/content/tree-utils.js