Persist the Z-pane height, and default to 300px
This commit is contained in:
parent
99f7badf42
commit
5ee045d8d4
|
@ -72,8 +72,8 @@ var ZoteroPane = new function()
|
||||||
|
|
||||||
var newPane = document.createElement('hbox');
|
var newPane = document.createElement('hbox');
|
||||||
newPane.setAttribute('id','zotero-pane');
|
newPane.setAttribute('id','zotero-pane');
|
||||||
|
newPane.setAttribute('persist','height');
|
||||||
newPane.setAttribute('collapsed',true);
|
newPane.setAttribute('collapsed',true);
|
||||||
newPane.setAttribute('flex','1');
|
|
||||||
newPane.height = oldPane.height;
|
newPane.height = oldPane.height;
|
||||||
while(oldPane.hasChildNodes())
|
while(oldPane.hasChildNodes())
|
||||||
newPane.appendChild(oldPane.firstChild);
|
newPane.appendChild(oldPane.firstChild);
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<vbox id="appcontent">
|
<vbox id="appcontent">
|
||||||
<!-- Changes to attributes of zotero-splitter and zotero-pane must be mirrored on overlay.js's onLoad() function -->
|
<!-- 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"/>
|
<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>
|
<popupset>
|
||||||
<popup id="zotero-collectionmenu" onpopupshowing="ZoteroPane.buildCollectionContextMenu();">
|
<popup id="zotero-collectionmenu" onpopupshowing="ZoteroPane.buildCollectionContextMenu();">
|
||||||
<menuitem label="&zotero.toolbar.newCollection.label;" command="cmd_zotero_newCollection"/>
|
<menuitem label="&zotero.toolbar.newCollection.label;" command="cmd_zotero_newCollection"/>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
{
|
{
|
||||||
background: #f5f5f5;
|
background: #f5f5f5;
|
||||||
min-height: 170px;
|
min-height: 170px;
|
||||||
|
height: 300px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user