mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Restore default Zotero pane height of 300px if no savedHeight
This commit is contained in:
parent
6e6e8b5d69
commit
c6f4a0d023
2 changed files with 7 additions and 2 deletions
|
|
@ -85,6 +85,7 @@ var ZoteroPane = new function()
|
|||
this.relinkAttachment = relinkAttachment;
|
||||
this.reportErrors = reportErrors;
|
||||
|
||||
const DEFAULT_ZPANE_HEIGHT = 300;
|
||||
const COLLECTIONS_HEIGHT = 125; // minimum height of the collections pane and toolbar
|
||||
|
||||
var self = this;
|
||||
|
|
@ -238,7 +239,12 @@ var ZoteroPane = new function()
|
|||
this.fullScreen(true);
|
||||
}
|
||||
|
||||
var savedHeight = zoteroPane.getAttribute('savedHeight');
|
||||
if (zoteroPane.hasAttribute('savedHeight')) {
|
||||
var savedHeight = zoteroPane.getAttribute('savedHeight');
|
||||
}
|
||||
else {
|
||||
var savedHeight = DEFAULT_ZPANE_HEIGHT;
|
||||
}
|
||||
|
||||
/*
|
||||
Zotero.debug("zoteroPane.boxObject.height: " + zoteroPane.boxObject.height);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
#zotero-pane
|
||||
{
|
||||
min-height: 32px; /* must match value in ZoteroPane.updateTagSelectorSize() */
|
||||
height: 300px;
|
||||
padding: 0 7px 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue