www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit e96a185e8e89656474bc7c0bd1f0921c0f261cff
parent 08cbf4d4d961739d8dfaee6b0c69b134eaf738f2
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 31 May 2011 06:46:28 +0000

Fix toolbar positioning on non-Mac


Diffstat:
Mchrome/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 @@ -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"; } }