PDA

View Full Version : Drag&Drop question



lytzen
11 Feb 2011, 2:49 PM
Hi everyone,

I'm quite new to Sencha Touch and have run into some problems when trying to do a little prototype. I hope someone can help me with my questions:

I've made a small webpage with four boxes. It can be seen at lytzen.net/DB/prototype/
The boxes are all instances of Ext.util.Draggable

1)First of all I would like the box that I drag to be in front of the others when i pass them. When I at the moment for instance drag Box1 over Box2 then Box1 goes behind Box2, but it should be the other way around. What setting am I missing?

2) I want to be able to drag one of the boxes on top of another box which should result in the two boxes changing place. For example i drag Box1 to Box4 and the two boxes change place. How can I do that?

Thanks in advance