commit edf113f18424f2ba2098d5b871175c5a544ff045
parent d6b76ca3d8f7140559414ac39ca5b582e3411190
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 26 Mar 2011 21:52:53 +0000
be less aggressive about resizing add citation dialog
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git 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