dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.86k stars 591 forks source link

addForeignObjectLabel not working with IE #12

Open dupengling opened 11 years ago

dupengling commented 11 years ago

http://jsfiddle.net/3gxaV/11/

I took the example of TCP State Diagram and only change the label of the nodes to div element. Seems it is not working with IE anymore because addForeignObjectLabel compute its width and height as zero. But it works well with chrome and FF.

cpettitt commented 11 years ago

I've learned recently that IE doesn't support foreignObjects in SVG. Right now we don't have any alternative, but there is a ticket open to track this https://github.com/cpettitt/dagre/issues/89. I'll probably move the ticket to dagre-d3 since that is where we're using foreignObjects.