Fix toolbar positioning on non-Mac

This commit is contained in:
Simon Kornblith 2011-05-31 06:46:28 +00:00
parent 08cbf4d4d9
commit e96a185e8e

View file

@ -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";
}
}