Persist the Z-pane height, and default to 300px

This commit is contained in:
Dan Stillman 2006-10-24 08:13:30 +00:00
parent 99f7badf42
commit 5ee045d8d4
3 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -47,7 +47,7 @@
<vbox id="appcontent">
<!-- Changes to attributes of zotero-splitter and zotero-pane must be mirrored on overlay.js's onLoad() function -->
<splitter id="zotero-splitter" resizebefore="closest" resizeafter="closest" collapsed="true"/>
<hbox id="zotero-pane" persist="height" collapsed="true" flex="1">
<hbox id="zotero-pane" persist="height" collapsed="true">
<popupset>
<popup id="zotero-collectionmenu" onpopupshowing="ZoteroPane.buildCollectionContextMenu();">
<menuitem label="&zotero.toolbar.newCollection.label;" command="cmd_zotero_newCollection"/>

View File

@ -9,6 +9,7 @@
{
background: #f5f5f5;
min-height: 170px;
height: 300px;
padding: 4px;
}