mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
Fix item pane blank (#5207)
This is caused by the persisted splitter state value to be blank from either older versions of client or plugins. Resetting the empty values fixes this bug.
This commit is contained in:
parent
246005a097
commit
0bff70b186
1 changed files with 6 additions and 0 deletions
|
|
@ -6650,6 +6650,12 @@ var ZoteroPane = new function()
|
|||
&& Zotero.Prefs.get('reopenPanesOnRestart')) {
|
||||
continue;
|
||||
}
|
||||
// For some reason, the persisted state of the splitter is empty. This will cause
|
||||
// the splitter to behave unexpectedly. We set it to 'collapsed' here.
|
||||
if (["zotero-context-splitter-stacked", "zotero-context-splitter"].includes(el.id)
|
||||
&& attr === 'state' && elValues[attr] === '') {
|
||||
elValues[attr] = 'collapsed';
|
||||
}
|
||||
// Ignore attributes that are no longer persisted for the element
|
||||
if (!allowedAttributes.includes(attr)) {
|
||||
Zotero.debug(`Not restoring '${attr}' for #${id}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue