ui helper offset & droppable area offset

ui helper offset & droppable area offset


Hello
I am having trouble with the draggable and the droppable components of
Jquery UI.
1) At start event of the draggable element I dynamically create a
droppable area, but as this changes the position of the image it
creates an offset between the mouse and the image. How can I make the
draggable element always stick to the mouse? I really need to create
that element dynamical for the design's sake.
2) The droppable is sometimes right on the div that it's supposed on,
but it moves! Sometimes it can be found like 100px above the div,
which is still in place... if you hold it up there, or wherever the
droppable space has moved (it seems to depend partly on which
draggable I'm dragging, also seems to change has I append data to the
page), it will work to drop it and it will also trigger the hover
class. How can I make the droppable area always be on that div?
Thanks a lot
/Calle

















    • Topic Participants

    • gmt