From edf113f18424f2ba2098d5b871175c5a544ff045 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 26 Mar 2011 21:52:53 +0000 Subject: [PATCH] be less aggressive about resizing add citation dialog --- chrome/content/zotero/integration/addCitationDialog.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/integration/addCitationDialog.js b/chrome/content/zotero/integration/addCitationDialog.js index d241355bd..6a5328487 100644 --- a/chrome/content/zotero/integration/addCitationDialog.js +++ b/chrome/content/zotero/integration/addCitationDialog.js @@ -212,7 +212,9 @@ var Zotero_Citation_Dialog = new function () { if(_multipleSourcesOn) { _multipleSourceButton.label = Zotero.getString("citation.singleSource"); document.getElementById("multiple-sources").setAttribute("hidden", false); - popup.resizeTo(750, dialog.getAttribute("height")); + if(dialog.getAttribute("width") <= 600) { + popup.resizeTo(750, dialog.getAttribute("height")); + } //popup.moveBy((600 - 750)/2, 0); serial_number = 0; @@ -226,7 +228,7 @@ var Zotero_Citation_Dialog = new function () { } else { _multipleSourceButton.label = Zotero.getString("citation.multipleSources"); document.getElementById("multiple-sources").setAttribute("hidden", true); - popup.resizeTo(600, dialog.getAttribute("height")); + //popup.resizeTo(600, dialog.getAttribute("height")); //popup.moveBy((750 - 600)/2, 0); // enable all fields