From f28ec470c9ecfc8460c387e7491e1bcc3089e4ee Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 8 Apr 2007 19:39:07 +0000 Subject: [PATCH] Reposition annotations on text zoom change --- chrome/content/zotero/browser.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index d3bdeff1f..e102bb44c 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -243,6 +243,13 @@ var Zotero_Browser = new function() { function(e) { Zotero_Browser.contentHide(e) }, true); this.tabbrowser.addEventListener("resize", function(e) { Zotero_Browser.resize(e) }, false); + // for text zoom changes + document.getElementById('cmd_textZoomReduce').addEventListener("command", + function(e) { Zotero_Browser.resize(e) }, false); + document.getElementById('cmd_textZoomEnlarge').addEventListener("command", + function(e) { Zotero_Browser.resize(e) }, false); + document.getElementById('cmd_textZoomReset').addEventListener("command", + function(e) { Zotero_Browser.resize(e) }, false); } /*