From be1ffbfb761b7f529bc9e784eeb80cb004ac7ff5 Mon Sep 17 00:00:00 2001
From: Simon Kornblith <simon@simonster.com>
Date: Sat, 31 Dec 2011 15:44:13 +0000
Subject: [PATCH] References should not have flex

---
 chrome/content/zotero/integration/quickFormat.js  | 4 ++--
 chrome/content/zotero/integration/quickFormat.xul | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js
index aa61b5104c..2d756eebee 100644
--- a/chrome/content/zotero/integration/quickFormat.js
+++ b/chrome/content/zotero/integration/quickFormat.js
@@ -717,14 +717,14 @@ var Zotero_QuickFormat = new function () {
 				if(!panelShowing) referencePanel.openPopup(document.documentElement, "after_start", 15,
 					null, false, false, null);
 				panelShowing = true;
-				referenceHeight = firstReference.scrollHeight+1;
+				referenceHeight = firstReference.scrollHeight;
 			}
 			
 			if(!separatorHeight && firstSeparator) {
 				if(!panelShowing) referencePanel.openPopup(document.documentElement, "after_start", 15,
 					null, false, false, null);
 				panelShowing = true;
-				separatorHeight = firstSeparator.scrollHeight+1;
+				separatorHeight = firstSeparator.scrollHeight;
 			}
 			
 			referencePanel.sizeTo(window.outerWidth-30,
diff --git a/chrome/content/zotero/integration/quickFormat.xul b/chrome/content/zotero/integration/quickFormat.xul
index fb5df04eca..c0159f4996 100644
--- a/chrome/content/zotero/integration/quickFormat.xul
+++ b/chrome/content/zotero/integration/quickFormat.xul
@@ -65,8 +65,8 @@
 			<progressmeter id="quick-format-progress-meter" mode="undetermined" value="0" flex="1"/>
 		</deck>
 	</windowdragbox>
-	<panel id="quick-format-reference-panel" noautofocus="true" norestorefocus="true" noautohide="true" height="0">
-		<richlistbox id="quick-format-reference-list" flex="1"/>
+	<panel id="quick-format-reference-panel" noautofocus="true" norestorefocus="true" noautohide="true" height="0" align="top">
+		<richlistbox id="quick-format-reference-list"/>
 	</panel>
 	<panel id="citation-properties" type="arrow" orient="vertical"
 			onkeypress="Zotero_QuickFormat.onPanelKeyPress(event)"