Skip to content
This repository was archived by the owner on May 8, 2022. It is now read-only.
This repository was archived by the owner on May 8, 2022. It is now read-only.

Droppable doesn't have the right position, when a droppable is inside a draggable #31

@edi9999

Description

@edi9999

In our application, we have droppables inside draggables :

You can see a demo of the example here :

https://github.com/edi9999/katavorio
selection_022

Active state:
katavario_active

Hover state :

katavario_hover

it seems that the hover state is not triggered correctly.

Is is somehow possible to have droppables inside draggables without any issues ?

The offset is calculated with :

this.getPosition = function (el) {
            return [ el.offsetLeft, el.offsetTop ];
};

which seems to be [0,0] in our case, but the position of the element in the html is not 0,0 (that is the position to the parent element). I guess the getPosition is not correct, am I right ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions