From 5ee045d8d441d89eca6a6ec7a15440d103304ae2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 24 Oct 2006 08:13:30 +0000 Subject: [PATCH] Persist the Z-pane height, and default to 300px --- chrome/content/zotero/overlay.js | 2 +- chrome/content/zotero/overlay.xul | 2 +- chrome/skin/default/zotero/overlay.css | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 856c07b39..15548dc6d 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -72,8 +72,8 @@ var ZoteroPane = new function() var newPane = document.createElement('hbox'); newPane.setAttribute('id','zotero-pane'); + newPane.setAttribute('persist','height'); newPane.setAttribute('collapsed',true); - newPane.setAttribute('flex','1'); newPane.height = oldPane.height; while(oldPane.hasChildNodes()) newPane.appendChild(oldPane.firstChild); diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul index 35fd6f376..f4b661de1 100644 --- a/chrome/content/zotero/overlay.xul +++ b/chrome/content/zotero/overlay.xul @@ -47,7 +47,7 @@ - + diff --git a/chrome/skin/default/zotero/overlay.css b/chrome/skin/default/zotero/overlay.css index dca265fd3..1a5baf061 100644 --- a/chrome/skin/default/zotero/overlay.css +++ b/chrome/skin/default/zotero/overlay.css @@ -9,6 +9,7 @@ { background: #f5f5f5; min-height: 170px; + height: 300px; padding: 4px; }