PDA

View Full Version : [4.1 b2] TreeNode - moved nodes - layout issue



enpasos
1 Feb 2012, 12:12 PM
I moved nodes to a node (skillpilot) which was empty before. I get

31257

but it should be

31258

I already reported similar issues. This seams to be a systematical problem. Please, help.

mitchellsimoens
2 Feb 2012, 7:42 AM
Was skillpilot node a leaf before you moved nodes to it? Is there a test case you have that I can run?

enpasos
3 Feb 2012, 11:22 AM
Thanks for helping.

You can reproduce the issues I see by pasting the following code into
ext-4.1.0-beta-2/docs/index.html#!/api/Ext.tree.Panel CodeEditor.


var store = Ext.create('Ext.data.TreeStore', {
root: {
expanded: true,
children: [
{ text: "a", expandable: false, expanded: false},
{ text: "b", expanded: true, children: [
{ text: "c", expandable: false, expanded: false},
{ text: "d", expandable: false, expanded: false}
] },
{ text: "e", expandable: false, expanded: false}
]
}
});

Ext.create('Ext.tree.Panel', {
title: 'Simple Tree', viewConfig: {
plugins: {
ptype: 'treeviewdragdrop',
appendOnly: true
}
},
width: 200,
height: 150,
store: store,
rootVisible: false,
renderTo: Ext.getBody()
});


and then drag-n-dropping nodes.

enpasos
3 Feb 2012, 11:36 AM
Do I need to handle the expandable Properties on a move for the old and new parent myself?