Draggable element problems in Sencha Touch 2.2.1
I am having problems trying to drag a container (which is inside a navigationview outside of the navigationview. Every time I try to do that, the container that is dragged disappears behind other components when it is dragged outside navigationview.
I have written a small fiddle that explains the problem that I'm facing: https://fiddle.sencha.com/fiddle/d0
In the example, the containers with the text 'Drag me baby' are within a navigation view and while dragging they disappear if they are dragged beyond the navigaiton views size.
Is there a way I can make the container visible even outside the navigationview such that it floats over other elements?
This appears to be happening because of the card layout used by the navigation view.
The docs state that "NavigationView is basically a Ext.Container with a card layout,"
Which means you should not use a vbox layout on a navigation view.
If you change the navigation view to a container with a card layout you will see the same problem.
As well as the draggable bars being displayed on separate cards as they should in a card layout.
I would suggest using a different container. Your code works with a container. Great job by the way of implementing d&d.
Tags for this Thread