From 914f29b8ac442726534fe62811293e6d49f0a20e Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 25 Aug 2011 21:10:15 +0000 Subject: [PATCH] - Don't sizeToContent() in Standalone window - Fix expand/collapse item --- chrome/content/zotero/standalone/standalone.xul | 1 - chrome/content/zotero/xpcom/itemTreeView.js | 11 ++++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul index 0de3c6bca..fc8e161b1 100644 --- a/chrome/content/zotero/standalone/standalone.xul +++ b/chrome/content/zotero/standalone/standalone.xul @@ -44,7 +44,6 @@ 1) { + if (me._treebox.view.selection.count > 1) { switch (event.keyCode) { case 39: - this.expandSelectedRows(); + me.expandSelectedRows(); break; case 37: - this.collapseSelectedRows(); + me.collapseSelectedRows(); break; } @@ -147,12 +148,12 @@ Zotero.ItemTreeView.prototype.setTree = function(treebox) var key = String.fromCharCode(event.which); if (key == '+' && !(event.ctrlKey || event.altKey || event.metaKey)) { - this.expandAllRows(); + me.expandAllRows(); event.preventDefault(); return; } else if (key == '-' && !(event.shiftKey || event.ctrlKey || event.altKey || event.metaKey)) { - this.collapseAllRows(); + me.collapseAllRows(); event.preventDefault(); return; }