dagre-d3 icon indicating copy to clipboard operation
dagre-d3 copied to clipboard

foreignObject wrong height and width after redraw with zoom and translate

Open cliedelt opened this issue 6 years ago • 3 comments

Hello,

unbenannt

As you can see the foreignObject has the wrong height and width.

Steps to reproduce:

  1. create graph and render it
  2. zoom and move inside the svg with your mouse
  3. create a new graph and render it

Any Recommendations ? I didnt know if you need more code..

cliedelt avatar Aug 29 '18 22:08 cliedelt

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.

christianvoigt avatar Feb 03 '19 12:02 christianvoigt

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

christianvoigt avatar Feb 03 '19 13:02 christianvoigt

follow +1

lin-credible avatar Jun 21 '19 13:06 lin-credible