PDA

View Full Version : [EXT 4] Ext.tree.Panel drag-drop scrolling not working



aq2.sanger
22 Nov 2012, 3:08 AM
Hello,

I am trying to implement scrolling of a Tree view during dragging and dropping, but it is not working. I have taken the sample code on http://docs.sencha.com/ext-js/4-1/extjs-build/examples/tree/reorder.js verbatim and put it into one of my app's pages, except I changed the store to load some hard-coded content and changed the renderTo of the panel. You can see that I am setting containerScroll to true for the treeviewdragdrop plugin. All I can say is that it does not scroll when I drag an item to the bottom or top edge of the tree view. However when I drag and drop it on the ExtJS doc site (which has essentially the same code) at http://docs.sencha.com/ext-js/4-1/#!/example/tree/reorder.html , it all works fine.

Help?

I can't seem to paste the code here and have it come out properly, so here's a JS Fiddle:

http://jsfiddle.net/z7x9f/1/

Thanks

aq2.sanger
22 Nov 2012, 6:03 AM
Oh, it's because I'm using the GPL version. Oh well.