Hi Offspring2009,

The problem is in the function moveItem, because you just do


And you did not take care of relative position of the element.
When you drag the element to put it on the droppable container, in
fact you set the left/top properties according to the container.
So as reattaching the element to the droppable as is, the left value
still exist and push the element to the right.

So you'll have to modify the function accordingly.


On 6 fév, 23:01, Offspring2099 <jm2...@gmail.com> wrote:
> http://www.tutorialspoint.com/cgi-bin/practice.cgi?file=scriptaculous_12
> I can't figure out if I'm doing something wrong or this is the way
> Draggable is coded.
> If you look at the tutorial link and try to 'drag and drop' one item
> from the left into the div on the right. You will see that the visual
> effect is as if the item comes from the right side, which it's clearly
> not.
> This is annoying. Anyone know if this is fixable?
> Thank you.
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to