Fix for too-wide item pane after 4.0 upgrade or prefs reset
Regression from stacked layout mode (6bff554976
)
This commit is contained in:
parent
794b582244
commit
a3a9cb9c1e
|
@ -32,7 +32,7 @@
|
|||
<script src="include.js"/>
|
||||
<script src="itemPane.js" type="application/javascript;version=1.8"/>
|
||||
|
||||
<vbox id="zotero-item-pane" zotero-persist="width height" flex="1">
|
||||
<vbox id="zotero-item-pane" zotero-persist="width height">
|
||||
<!-- Trash -->
|
||||
<hbox id="zotero-item-pane-top-buttons-trash" class="zotero-item-pane-top-buttons" hidden="true">
|
||||
<button id="zotero-item-restore-button" label="&zotero.items.menu.restoreToLibrary;"
|
||||
|
|
|
@ -4796,7 +4796,10 @@ var ZoteroPane = new function()
|
|||
itemsToolbar.setAttribute("flex", "0");
|
||||
itemToolbar.setAttribute("flex", "1");
|
||||
}
|
||||
|
||||
|
||||
// Allow item pane to shrink to available height in stacked mode, but don't expand to be too
|
||||
// wide when there's no persisted width in non-stacked mode
|
||||
itemPane.setAttribute("flex", stackedLayout ? 1 : 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user