From 4a096665a09fcb408aee7212bd0e297b8bdafcc2 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Wed, 17 Jan 2024 17:22:28 -0500 Subject: [PATCH] refresh collectionTree rowMap after row is added It prevents the trash row from getting wrong offset and overlapping with the row above it --- chrome/content/zotero/collectionTree.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/collectionTree.jsx b/chrome/content/zotero/collectionTree.jsx index 44ededb2b6..7cb501de3c 100644 --- a/chrome/content/zotero/collectionTree.jsx +++ b/chrome/content/zotero/collectionTree.jsx @@ -989,6 +989,7 @@ var CollectionTree = class CollectionTree extends LibraryTree { } } } + this._refreshRowMap(); } else if (action == 'refresh' && type == 'trash') { // We need to update the trash's status (full or empty), and if empty,