1. #1
    Sencha User
    Join Date
    Aug 2013
    Pune, India
    Vote Rating
    karanjthakkar is on a distinguished road


    Default Unanswered: 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?

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Vote Rating
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all



    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.

Thread Participants: 1

Tags for this Thread