From 6c97fed76c2fd7b4b781de69b09bf31e6935a9ab Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 16 Jan 2012 22:39:29 -0500 Subject: [PATCH] Fixes for Firefox 3.6 (ugh) --- .../content/zotero/integration/quickFormat.js | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index d91adac63..1f507d912 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -106,9 +106,10 @@ var Zotero_QuickFormat = new function () { * Initialize add citation dialog */ this.onLoad = function(event) { - if(event.target !== document) return; + if(event.target !== document) return; // make sure we are visible - window.setTimeout(function() { + window.setTimeout(function() { + if(!Zotero.isFx4) window.sizeToContent(); var screenX = window.screenX; var screenY = window.screenY; var xRange = [window.screen.availLeft, window.screen.width-window.outerWidth]; @@ -687,10 +688,13 @@ var Zotero_QuickFormat = new function () { for(var i=0, n=childNodes.length; i