commit db5b5ad26dbfadf20fddb4a03450b5700d9109b4
parent 8e1a85eec04f8b8c9be788692f06a6bda0cf2514
Author: Felicitus <felicitus@felicitus.de>
Date: Mon, 20 Sep 2010 14:58:38 +0200
+tree-sorter
+scroll fix for category view
Diffstat:
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryWidget.js b/frontend/js/de.RaumZeitLabor.PartDB2/CategoryEditor/CategoryWidget.js
@@ -2,10 +2,16 @@ Ext.ns("de.RaumZeitLabor.PartDB2.CategoryEditor");
de.RaumZeitLabor.PartDB2.CategoryEditor.CategoryWidget = Ext.extend(Ext.tree.TreePanel, {
initComponent : function() {
+
+ new Ext.tree.TreeSorter(this, {
+ folderSort: false,
+ dir: "asc"
+ });
+
Ext.apply(this, {
border: false,
animate: false,
- containerScroll: false,
+ autoScroll: true,
root : new Ext.tree.TreeNode( {
id : 0
}),
diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerTree.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerTree.js
@@ -4,10 +4,18 @@ de.RaumZeitLabor.PartDB2.PartsManagerTree = Ext.extend(Ext.tree.TreePanel, {
id: 'parts-tree',
initComponent: function () {
+ new Ext.tree.TreeSorter(this, {
+ folderSort: false,
+ dir: "asc"
+ });
+
+
Ext.apply(this, {
root: new Ext.tree.TreeNode({id: 0}),
rootVisible: false,
animate: false,
+ autoScroll: true,
+
tbar: {
items: [
{