PDA

View Full Version : [OPEN-1317] Ext.tree.TreePanel - dragConfig{primaryButtonOnly:false} is ignored



johnrembo
8 Oct 2010, 2:52 AM
Modified "Reorder TreePanel" example code to reproduce the bug:



Ext.onReady(function(){
// shorthand
var Tree = Ext.tree;

var tree = new Tree.TreePanel({
useArrows: true,
autoScroll: true,
animate: true,
enableDD: true,
containerScroll: true,
border: false,
// auto create TreeLoader
dataUrl: 'get-nodes.php',

root: {
nodeType: 'async',
text: 'Ext JS',
draggable: false,
id: 'src'
},
dragConfig: {
primaryButtonOnly:false//doesn't work
},
listeners:{
load:function(){
this.dragZone.primaryButtonOnly=false;//works!
}
}
});

// render the tree
tree.render('tree-div');
tree.getRootNode().expand();
});


Ext 3.2.0
FF 3.6.10@WinXp