Reopen collapsed collections pane on restart, for now
Same as item pane Closes #825
This commit is contained in:
parent
ec0b993a17
commit
787e57f6a2
1 changed files with 3 additions and 8 deletions
|
@ -4770,14 +4770,9 @@ var ZoteroPane = new function()
|
||||||
if(!el) return;
|
if(!el) return;
|
||||||
var elValues = serializedValues[id];
|
var elValues = serializedValues[id];
|
||||||
for(var attr in elValues) {
|
for(var attr in elValues) {
|
||||||
// TEMP: For now, ignore persisted collapsed state for item pane splitter
|
// TEMP: For now, ignore persisted collapsed state for collection and item pane splitters
|
||||||
if (el.id == 'zotero-items-splitter' && attr == 'state') continue;
|
if ((el.id == 'zotero-collections-splitter' || el.id == 'zotero-items-splitter')
|
||||||
// And don't restore to min-width if splitter was collapsed
|
&& attr == 'state') continue;
|
||||||
if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250
|
|
||||||
&& 'zotero-items-splitter' in serializedValues
|
|
||||||
&& serializedValues['zotero-items-splitter'].state == 'collapsed') {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
el.setAttribute(attr, elValues[attr]);
|
el.setAttribute(attr, elValues[attr]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue