Skip to content

positioning error when swapping elements. #83

Closed
@donaldinho

Description

@donaldinho

I have a page that I am developing which uses something similar to the dnd-ctrl-as-syntax.html demo.

There is a list with draggable and droppable elements linked to the same model. In my page there is an ancestor element that has position:relative and this is affecting the positioning of the swap animation.
angular-dragdrop uses .offset() to find the position of the elements. This is obviously relative to the document but in my case the elements are then positioned relative to the parent element that has position:relative making them appear in the wrong place.

Locally I've changed angular-dragdrop to use .position() but I'm not sure how this should be treated in the more general case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions