Franklinjagan / jsplumb

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

jquery ui sortable #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to use the jquery.ui sortable instead of the draggable supported 
behavior but it gets nuts.
Is there a workaround for it ?

Original issue reported on code.google.com by tbarbu...@gmail.com on 23 Nov 2010 at 9:51

GoogleCodeExporter commented 9 years ago
no, but "it gets nuts" is definitely intriguing...do you have a demo page?

Original comment by simon.po...@gmail.com on 23 Nov 2010 at 11:25

GoogleCodeExporter commented 9 years ago
Hi,
Attached a standalone html page as an example.

Tommaso

Original comment by tbarbu...@gmail.com on 23 Nov 2010 at 2:27

Attachments:

GoogleCodeExporter commented 9 years ago
thanks.

by default jsPlumb sets connected elements to be draggable, and adds its own 
listeners to them so it can update when something moves.  so the first thing 
you should do when integrating with some other plugin that adds drag 
functionality is to disable it in jsPlumb.  put this at the start of your 
script:

jsPlumb.setDraggableByDefault(false);

then what you have to do is add an event listener to whatever plugin has added 
the drag, and have it call back to one of jsPlumb's repaint methods.

i took a quick look at sortable and was a little surprised to find they don't 
seem to offer an event hook for when something is dragging.

anyway - as it stands, i don't see a jsPlumb bug here.

Original comment by simon.po...@gmail.com on 23 Nov 2010 at 9:04

GoogleCodeExporter commented 9 years ago
i'm about to release 1.2.4 - closing this. if you disagree with the resolution 
by all means reopen it.

Original comment by simon.po...@gmail.com on 25 Nov 2010 at 9:40