Hareeshchandera / jsplumb

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

Endpoint Issue after setEnabled or setDragAllowedWhenFull #209

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
sample page:
http://jsplumb.org/jquery/dynamicAnchorsDemo.html

with firebug: 
set: 
jsPlumb.getEndpoints("window2")[0].setEnabled(false)
jsPlumb.getEndpoints("window2")[1].setEnabled(false)

now, for a few times try to drag a connection from any of the window 2 
endpoints. It works as expected - no connections is dragged. 

but if we're enabling endpoints, and try to drag a connection from those to:
jsPlumb.getEndpoints("window2")[0].setEnabled(true)
jsPlumb.getEndpoints("window2")[1].setEnabled(true)

an awkward connection appear.

I've attached an image with the issue.

Same issue in multiple browsers - Win XP

Original issue reported on code.google.com by contor...@gmail.com on 28 Feb 2012 at 10:06

Attachments:

GoogleCodeExporter commented 8 years ago
the strange thing about this issue is that jsPlumb.getEndpoints("window2") 
returns an array with only one Endpoint in Chrome for me.  you mentioned that 
you were seeing the same issue on multiple browsers.  did you not get a JS 
error when you ran this in Chrome then?

Original comment by simon.po...@gmail.com on 3 Mar 2012 at 12:50

GoogleCodeExporter commented 8 years ago
fixed in 1.3.7 dev. 

Original comment by simon.po...@gmail.com on 3 Mar 2012 at 10:39

GoogleCodeExporter commented 8 years ago
1.3.7 was released today

Original comment by simon.po...@gmail.com on 4 Mar 2012 at 12:11