From 99b417150074e456a7eebf4cde77a137282ba3d2 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Fri, 14 Mar 2025 20:04:31 -0700 Subject: [PATCH] citation dlg: persist screen position (#5122) Do not explicitly move the window to the center of the screen. Fixes: #5119 --- chrome/content/zotero/integration/citationDialog.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/chrome/content/zotero/integration/citationDialog.js b/chrome/content/zotero/integration/citationDialog.js index a6b57f8d29..0fb8380149 100644 --- a/chrome/content/zotero/integration/citationDialog.js +++ b/chrome/content/zotero/integration/citationDialog.js @@ -74,13 +74,6 @@ async function onLoad() { // keypress from the top-most row in the items table doc.addEventListener("keydown", event => KeyboardHandler.captureKeydown(event), true); - // Move dialog towards the center (it's needed even though we open the dialog with centerscreen param) - let targetX = Math.floor((window.screen.width - window.outerWidth) / 2); - let targetY = window.screen.height / 3; - setTimeout(() => { - window.moveTo(targetX, targetY); - }); - // citation has to be built before libraryLayout.init to so itemTree knows which items to highlight await CitationDataManager.buildCitation(); IOManager.updateBubbleInput();