Franklinjagan / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

Anchors stop responding to drag after jsPlumb.detachAll(id) call #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Div with two endpoints/anchors, with one dragged connection on each
2. jsPlumb.detachAll(id of div);
3. Connections clear but the anchors are not draggable anymore most of the 
time, if I drag the parent div sometime the endpoints will respond to drag 
events.

I have also tried to get the end points by uuid and clear the connections like 
this:
var te = jsPlumb.getEndpoint(me.selected_object_id + '_top');
te.detachAll();
var be = jsPlumb.getEndpoint(me.selected_object_id + '_bottom');
be.detachAll();
jsPlumb.repaintEverything();

but not only are the endpoints not draggable but also the bezier connecting 
lines are orphaned and stay drawn on the canvas.

What version of the product are you using? On what operating system?
1.2.2 ad 1.2.3
jQuery 1.4

Original issue reported on code.google.com by raf...@gmail.com on 19 Oct 2010 at 4:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Actually here is what is going on and it does not have anything to do with the 
detachAll function.

It seems like the canvas that is used for drawing the connection line is on top 
of the endpoint canvas and the drag events for the endpoint don't fire. 

This can be fixed by setting the z-index on the endpoint. Please close this bug.

Original comment by raf...@gmail.com on 19 Oct 2010 at 6:19

GoogleCodeExporter commented 9 years ago
thanks for the update.  i should probably make the z-index issues more clear in 
the documentation - even I have been tripped up by this from time to time...

Original comment by simon.po...@gmail.com on 19 Oct 2010 at 9:39