commit b51080a38778e0eba8354140244a015691563309
parent 74d4c4eaafe5d83f30791724ec7489ae8b912175
Author: Felicitus <felicitus@felicitus.org>
Date: Thu, 18 Aug 2011 23:13:38 +0200
Fixes #88
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/frontend/js/Components/Part/PartCategoryTree.js b/frontend/js/Components/Part/PartCategoryTree.js
@@ -10,7 +10,7 @@ Ext.define("PartKeepr.PartCategoryTree", {
this.callParent();
this.syncButton = Ext.create("Ext.button.Button", {
- tooltip: i18n("Sync Category"),
+ tooltip: i18n("Reveal Category"),
icon: 'resources/fugue-icons/icons/arrow-split-180.png',
handler: Ext.bind(function () {
this.fireEvent("syncCategory");
diff --git a/frontend/js/Components/Part/PartsManager.js b/frontend/js/Components/Part/PartsManager.js
@@ -107,6 +107,8 @@ Ext.define('PartKeepr.PartManager', {
var node = rootNode.findChild("id", cat, true);
this.tree.getView().ensureVisible(node);
+ this.tree.getView().scrollIntoView(node);
+
var htmlNode = new Ext.Element(this.tree.getView().getNode(node));
htmlNode.highlight("FF0000");