Fixes incorrect post-edit scrolling

Fixes #268, broken in 2cd45be191

Post-edit scrolling can probably be smarter, but this fixes the brokenness.
This commit is contained in:
Dan Stillman 2013-03-15 16:56:55 -04:00
parent 578ba29cc5
commit d726ce41fa

View file

@ -237,7 +237,6 @@ Zotero.ItemTreeView.prototype._refreshGenerator = function()
}
var savedSelection = this.saveSelection();
var savedOpenState = this.saveOpenState();
var savedFirstRow = this.saveFirstRow();
var oldRows = this.rowCount;
this._dataItems = [];
@ -320,7 +319,6 @@ Zotero.ItemTreeView.prototype._refreshGenerator = function()
}
this.rememberOpenState(savedOpenState);
this.rememberFirstRow(savedFirstRow);
this.rememberSelection(savedSelection);
this.expandMatchParents();
if (unsuppress) {