Ticket #4305 (closed bug: invalid)
Sortable: Revert placeholder calcing position
| Reported by: | Zebulon | Owned by: | Zebulon |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.0.0 |
| Component: | ui.sortable | Version: | 1.7 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The placeholder margins left & top are not included in the revert position calcing causing a gap if margin(s) are defined.
Here's a fix ( works fine FF & Safari ) :
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); });
Change History
comment:3 Changed 7 months ago by petersendidit
- Owner set to Zebulon
- Status changed from new to pending
- Summary changed from Revert placeholder calcing position to Sortable: Revert placeholder calcing position
Thanks for taking the time to contribute to the jQuery UI project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the git version of both jQuery UI and jQuery to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/ZgAqH/Open the link and click to "Fork" (in the top menu) to get started.
comment:4 Changed 7 months ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

