From cb3d4b18001a95bb164c6704359d90a0b6fc125d Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 15 Jun 2022 00:28:02 +0200 Subject: [PATCH] Fix tag selector menus not appearing on fx102 (#2654) Also tweaked offset where a context menu appears to 1px from cursor (was 2px) to match other context menus. --- .../containers/tagSelectorContainer.jsx | 5 +- chrome/content/zotero/zoteroPane.xhtml | 87 +++++++++---------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/chrome/content/zotero/containers/tagSelectorContainer.jsx b/chrome/content/zotero/containers/tagSelectorContainer.jsx index 57ca342c6d..68ea5ca6f1 100644 --- a/chrome/content/zotero/containers/tagSelectorContainer.jsx +++ b/chrome/content/zotero/containers/tagSelectorContainer.jsx @@ -508,9 +508,10 @@ Zotero.TagSelector = class TagSelectorContainer extends React.PureComponent { tagContextMenu.childNodes[i].disabled = this.state.viewOnly; } ev.preventDefault(); + tagContextMenu.openPopupAtScreen( - window.screenX + ev.clientX + 2, - window.screenY + ev.clientY + 2, + ev.screenX + 1, + ev.screenY + 1, true ); this.contextTag = tag; diff --git a/chrome/content/zotero/zoteroPane.xhtml b/chrome/content/zotero/zoteroPane.xhtml index c04842b27e..c95678db6f 100644 --- a/chrome/content/zotero/zoteroPane.xhtml +++ b/chrome/content/zotero/zoteroPane.xhtml @@ -1225,6 +1225,49 @@ + + + + + + + + + + + + + + + @@ -1252,48 +1295,4 @@ - - - - - - - - - - - - - - - -