Hi all,

I update all my work from 1.2.6 / 1.5.3 to the latest release 1.3.2 /
1.7. All works fine
and faster, greetings to the dev team ;-)

I have found a problem in Sortable revert option, the placeholder
margin left / top don't
change the original position calcing.

I've include these parameters in ui.sortable.js and the problem is
solved

Hope that will help,

Regards

Jeff

Tested in FF 3+ and Safari 3+

( line 288 - function _mouseStop )
.....
if(this.options.revert) {
var self = this;
var cur = self.placeholder.offset();
self.reverting = true;

//****
var margin_left=parseInt(self.placeholder.css('marginLeft'),10);
var margin_top=parseInt(self.placeholder.css('marginTop'),10);

$(this.helper).animate({
         left: cur.left - margin_left .......... ,
         top: cur.top - margin_top ...........
        }, parseInt(this.options.revert, 10) || 500, function() { self._clear
(event); });
//****


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to