#387 enhancement
Ron Rademaker

Relativize move elements when relocated

Reported by Ron Rademaker | October 10th, 2008 @ 05:46 PM | in 1.7

The current implementation of relativize does not ensure the relativized element remains at the some position in the document. I've found a way to reproduce this and included this in the attached patch (a unified svn diff). A fix to the bug is also included. The problem is cause by the originalTop / originalLeft variables prototype sets on elements. These no longer have valid values when elements are relocated to other parts of the dom. This is a very common situation when for elements made draggable, ie. in script.acoul.us' Sortable.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket