From 516fedc2fe731c302b2d72c3df6d1f28f2b098b3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 27 Dec 2016 13:52:50 -0500 Subject: [PATCH] Fix right alignment of search bar --- chrome/content/zotero/zoteroPane.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 8abd3c8c1..b0dad3434 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4785,7 +4785,12 @@ var ZoteroPane = new function() if (collectionsPane.collapsed) { itemsToolbarWidth -= collectionsToolbar.boxObject.width; } - + // Not sure why this is necessary, but it keeps the search bar from overflowing into the + // right-hand pane + else { + itemsToolbarWidth -= 8; + } + itemsToolbar.style.width = itemsToolbarWidth + "px"; itemsToolbar.setAttribute("flex", "0"); itemToolbar.setAttribute("flex", "1");