rem: this.childData.pendingScroll = this.outliner.getFirstVisibleRow() + 1; 
add: this.childData.pendingScroll = this.tree.getFirstVisibleRow() + 1; 
context: function sv_dsource (sourceText){    if ("childData" in this && sourceText == this.childData)        return;        function tryAgain (result)    {        if (result == Components.results.NS_OK)            console.sourceView.displaySourceText(sourceText);        else        {            dd ("source load failed: '" + sourceText.fileName + "'");        }    }    /* save the current position before we change to another source */    if ("childData" in this)    {        this.childData.pendingScroll = this.outliner.getFirstVisibleRow() + 1;        this.childData.pendingScrollType = -1;    }        if (!sourceText)    {        delete this.childData;        this.rowCount = 0;        this.outliner.rowCountChanged(0, 0);        this.outliner.invalidate();        return;    }        /* if the source for this record isn't loaded yet, load it and call ourselves     * back after */    if (!sourceText.isLoaded)    {        disableReloadCommand();        /* clear the view while we wait for the source text */        delete this.childData;        this.rowCount = 0;        this.outliner.rowCountChanged(0, 0);        this.outliner.invalidate();        /* load the source text, call the tryAgain function when it's done. */        sourceText.pendingScroll = 0;        sourceText.pendingScrollType = -1;        sourceText.loadSource(tryAgain);        return;    }    enableReloadCommand();    this.childData = sourceText;    this.rowCount = sourceText.lines.length;    this.tabString = leftPadString ("", sourceText.tabWidth, " ");    this.outliner.rowCountChanged(0, this.rowCount);    this.outliner.invalidate();    var hdr = document.getElementById("source-line-text");    hdr.setAttribute ("label", sourceText.fileName);    if ("pendingScroll" in this.childData)    {        this.scrollTo (this.childData.pendingScroll,                       this.childData.pendingScrollType);        delete this.childData.pendingScroll;        delete this.childData.pendingScrollType;    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/venkman-trees.js/buggy/extensions/venkman/resources/content/venkman-trees.js