Results 1 to 2 of 2

Thread: Draggable element problems in Sencha Touch 2.2.1

  1. #1
    Sencha User
    Join Date
    Aug 2013
    Pune, India
    Vote Rating

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

    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


    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.!/guide/layouts-section-card-layout

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts