Fix problem with items list scrollbar size between views
Caused by 2cd45be191
, though not sure why it's happening.
This commit is contained in:
parent
c457139573
commit
0853dbc070
1 changed files with 3 additions and 2 deletions
|
@ -315,7 +315,7 @@ Zotero.ItemTreeView.prototype._refreshGenerator = function()
|
|||
|
||||
if (!this.selection.selectEventsSuppressed) {
|
||||
var unsuppress = this.selection.selectEventsSuppressed = true;
|
||||
this._treebox.beginUpdateBatch();
|
||||
//this._treebox.beginUpdateBatch();
|
||||
}
|
||||
var savedSelection = this.saveSelection();
|
||||
var savedOpenState = this.saveOpenState();
|
||||
|
@ -410,7 +410,8 @@ Zotero.ItemTreeView.prototype._refreshGenerator = function()
|
|||
this.rememberSelection(savedSelection);
|
||||
this.expandMatchParents();
|
||||
if (unsuppress) {
|
||||
this._treebox.endUpdateBatch();
|
||||
// This causes a problem with the row count being wrong between views
|
||||
//this._treebox.endUpdateBatch();
|
||||
this.selection.selectEventsSuppressed = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue