Hareeshchandera / jsplumb

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

Removing a Label Overlay from a Connection does not remove the "div" element. #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Add an overlay to a Connection object and attempt then call removeOverlay(id) 
to remove the overlay.

The div representing the Label is still present.

Original issue reported on code.google.com by marcdu...@gmail.com on 6 Oct 2011 at 7:29

GoogleCodeExporter commented 8 years ago
Also, would it be useful to add a reference to the DOM element inside the 
Overlay object.

For instance, this.el , or this.div, or this.element so that you can easily add 
styles directly to that dom node without having to use a class Name.  

Original comment by marcdu...@gmail.com on 6 Oct 2011 at 7:32

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 2 Nov 2011 at 11:12

GoogleCodeExporter commented 8 years ago
this is fixed in development now.  the label overlay cleans itself up properly.

also, i added this function to Label:

getElement()

which returns the div that the Label has added to the DOM.

this will be released in 1.3.4.

Original comment by simon.po...@gmail.com on 2 Nov 2011 at 11:38

GoogleCodeExporter commented 8 years ago
1.3.4 was released today.

Original comment by simon.po...@gmail.com on 9 Jan 2012 at 7:00