From e96a185e8e89656474bc7c0bd1f0921c0f261cff Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 31 May 2011 06:46:28 +0000 Subject: [PATCH] Fix toolbar positioning on non-Mac --- chrome/content/zotero/zoteroPane.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 389b6231e..5e0a4a42a 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3607,10 +3607,14 @@ var ZoteroPane = new function() const PANES = ["collections", "items"]; for each(var paneName in PANES) { var pane = document.getElementById("zotero-"+paneName+"-pane"); + var splitter = document.getElementById("zotero-"+paneName+"-splitter"); var toolbar = document.getElementById("zotero-"+paneName+"-toolbar"); - computedStyle = window.getComputedStyle(pane, null); - toolbar.style.width = computedStyle.getPropertyValue("width"); + var paneComputedStyle = window.getComputedStyle(pane, null); + var splitterComputedStyle = window.getComputedStyle(splitter, null); + + toolbar.style.width = parseInt(paneComputedStyle.getPropertyValue("width")) + +parseInt(splitterComputedStyle.getPropertyValue("width"))+"px"; } }