Got it. Thanks David.
On Feb 9, 3:55 am, david <[email protected]> wrote:
> Hi Offspring2009,
>
> The problem is in the function moveItem, because you just do
>
> <<
> draggable.parentNode.removeChild(draggable);
> droparea.appendChild(draggable);
>
>
>
> 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.
>
> --
> david
>
> On 6 fév, 23:01, Offspring2099 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---