commit e033665b6b9ace8382352459feeee89abcfdfae6
parent 20a14919cee232c9e015bb602d5e29aaa6953bfd
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 24 Jul 2009 07:13:11 +0000
- Fix potentially missing tag selector splitter (with no way to restore)
- Decrease min-height of collections tree (since it doesn't seem to want to be resized all the way down)
Diffstat:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js
@@ -82,7 +82,7 @@ var ZoteroPane = new function()
this.displayErrorMessage = displayErrorMessage;
const DEFAULT_ZPANE_HEIGHT = 300;
- const COLLECTIONS_HEIGHT = 125; // minimum height of the collections pane and toolbar
+ const COLLECTIONS_HEIGHT = 32; // minimum height of the collections pane and toolbar
var self = this;
var titlebarcolorState, toolbarCollapseState, titleState;
@@ -314,6 +314,11 @@ var ZoteroPane = new function()
zoteroSplitter.setAttribute('hidden', !makeVisible);
+ // Make sure tags splitter isn't missing for people upgrading from <2.0b7
+ if (makeVisible) {
+ document.getElementById('zotero-tags-splitter').collapsed = false;
+ }
+
// Restore fullscreen mode if necessary
if (makeVisible && isFullScreen()) {
this.fullScreen(true);
@@ -842,7 +847,7 @@ var ZoteroPane = new function()
}
// 121px seems to be enough room for the toolbar and collections
// tree at minimum height
- height = height + 125;
+ height = height + COLLECTIONS_HEIGHT;
}
//Zotero.debug('Setting Zotero pane minheight to ' + height);
diff --git a/chrome/skin/default/zotero/overlay.css b/chrome/skin/default/zotero/overlay.css
@@ -42,7 +42,7 @@ window[active="true"] #zotero-pane[fullscreenmode="true"][platform="mac"]
}
#zotero-collections-tree {
- min-height: 80px;
+ min-height: 5.2em;
}
#zotero-collections-tree treechildren::-moz-tree-image