Fix problem with items list scrollbar size between views

Caused by 2cd45be191, though not sure why it's happening.
This commit is contained in:
Dan Stillman 2013-03-17 16:12:02 -04:00
parent c457139573
commit 0853dbc070

View file

@ -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;
}