Bug Tracker

Modify

Ticket #1812 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

Draggable error in function revert with helper defined as function

Reported by: trta Owned by: paul
Priority: major Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: Cc:
Blocking: Blocked by:

Description

If I define helper option like this:

$('.items').draggable({
  appendTo: $(document.body),
  helper: function() { 
    $('#proxy').remove();  
    return $('<div id="proxy">proxy...</div>');
  }
});

I get error (when dragging is finished and helper is to be reverted) in file ui.draggable.ext.js on line 85 (o.po is not defined), the quick fix is to modify lines 85, 86 like this:

var nl = rpos.left-(o.po ? o.po.left : 0)-o.margins.left;
var nt = rpos.top-(o.po ? o.po.left : 0)-o.margins.top;

but I dont have necessary insight...

Change History

comment:1 Changed 6 years ago by paul

  • Owner set to paul
  • Status changed from new to assigned

comment:2 Changed 5 years ago by paul

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in the new version to be released with 1.1. Thanks!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.