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:
parent
578ba29cc5
commit
d726ce41fa
1 changed files with 0 additions and 2 deletions
|
@ -237,7 +237,6 @@ Zotero.ItemTreeView.prototype._refreshGenerator = function()
|
||||||
}
|
}
|
||||||
var savedSelection = this.saveSelection();
|
var savedSelection = this.saveSelection();
|
||||||
var savedOpenState = this.saveOpenState();
|
var savedOpenState = this.saveOpenState();
|
||||||
var savedFirstRow = this.saveFirstRow();
|
|
||||||
|
|
||||||
var oldRows = this.rowCount;
|
var oldRows = this.rowCount;
|
||||||
this._dataItems = [];
|
this._dataItems = [];
|
||||||
|
@ -320,7 +319,6 @@ Zotero.ItemTreeView.prototype._refreshGenerator = function()
|
||||||
}
|
}
|
||||||
|
|
||||||
this.rememberOpenState(savedOpenState);
|
this.rememberOpenState(savedOpenState);
|
||||||
this.rememberFirstRow(savedFirstRow);
|
|
||||||
this.rememberSelection(savedSelection);
|
this.rememberSelection(savedSelection);
|
||||||
this.expandMatchParents();
|
this.expandMatchParents();
|
||||||
if (unsuppress) {
|
if (unsuppress) {
|
||||||
|
|
Loading…
Reference in a new issue