www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 12ff659e9f277987a9be1c8399ae7b77bc35aa0a
parent e6b4dde4720faea888ad69f06ab8d4508e8d9fd3
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 14 Nov 2012 02:17:18 -0500

Workaround for minimum Firefox window height of 60 px

Diffstat:
Mchrome/content/zotero/integration/quickFormat.js | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js @@ -100,8 +100,6 @@ var Zotero_QuickFormat = new function () { } } - window.sizeToContent(); - // Nodes for citation properties panel panel = document.getElementById("citation-properties"); panelPrefix = document.getElementById("prefix"); @@ -129,8 +127,8 @@ var Zotero_QuickFormat = new function () { this.onLoad = function(event) { if(event.target !== document) return; // make sure we are visible - window.setTimeout(function() { - if(!Zotero.isFx4) window.sizeToContent(); + window.setTimeout(function() { + window.resizeTo(window.outerWidth, qfb.clientHeight); var screenX = window.screenX; var screenY = window.screenY; var xRange = [window.screen.availLeft, window.screen.width-window.outerWidth]; @@ -740,7 +738,6 @@ var Zotero_QuickFormat = new function () { qfs.removeAttribute("multiline"); window.sizeToContent(); } - var panelShowing = referencePanel.state === "open" || referencePanel.state === "showing"; if(numReferences || numSeparators) { @@ -802,7 +799,7 @@ var Zotero_QuickFormat = new function () { } referencePanel.openPopup(document.documentElement, "after_start", 15, - null, false, false, null); + qfb.clientHeight-window.clientHeight, false, false, null); if(!Zotero.isMac && !Zotero.isWin) { // reinstate noautohide after the window is shown