run another resize operation on a timeout to fix standalone issues

This commit is contained in:
Simon Kornblith 2011-02-13 03:56:33 +00:00
parent fd9e25fa29
commit 39cd0264cd

View File

@ -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);