From 39cd0264cd2307b2b14fc12111b52ddc25dda8c2 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 13 Feb 2011 03:56:33 +0000 Subject: [PATCH] run another resize operation on a timeout to fix standalone issues --- chrome/content/zotero/zoteroPane.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 4097994da..f7db533f1 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -116,8 +116,9 @@ var ZoteroPane = new function() var zp = document.getElementById('zotero-pane'); Zotero.setFontSize(zp); - ZoteroPane.updateToolbarPosition(); + this.updateToolbarPosition(); window.addEventListener("resize", this.updateToolbarPosition, false); + window.setTimeout(this.updateToolbarPosition, 0); if (Zotero.isMac) { //document.getElementById('zotero-tb-actions-zeroconf-update').setAttribute('hidden', false);