You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: