dagre-d3
dagre-d3 copied to clipboard
foreignObject wrong height and width after redraw with zoom and translate
Hello,
As you can see the foreignObject has the wrong height and width.
Steps to reproduce:
- create graph and render it
- zoom and move inside the svg with your mouse
- create a new graph and render it
Any Recommendations ? I didnt know if you need more code..
Hi, I have similar problems on https://argdown.org/sandbox/map
This used to work, but now in Chrome the nodes seem to be twice as large as they should be. This seems to be a browser issue because I have not updated the code in the last months. If you open the page in Firefox everything is still fine (if you open the page in Edge the nodes are too small though). Maybe there is an issue with getBBox in Chrome?
I tried downgrading Dagre-D3 and removing the zoom and move behaviors, but this does not help. I am pretty sure this is a browser issue.
I found an open chrome issue that could be causing these problems: https://bugs.chromium.org/p/chromium/issues/detail?id=738022&q=foreign-object
follow +1