diff --git a/chrome/content/zotero/itemTree.jsx b/chrome/content/zotero/itemTree.jsx index c94ccf0554..f6a5085ee9 100644 --- a/chrome/content/zotero/itemTree.jsx +++ b/chrome/content/zotero/itemTree.jsx @@ -1456,11 +1456,7 @@ var ItemTree = class ItemTree extends LibraryTree { ensureRowsAreVisible(indices) { if (!this._treebox) return; - let itemHeight = 20; // px - if (Zotero.isLinux) { - itemHeight = 22; - } - itemHeight *= Zotero.Prefs.get('fontSize'); + let itemHeight = this.tree._rowHeight; const pageLength = Math.floor(this._treebox.getWindowHeight() / itemHeight); const maxBuffer = 5;