-
Notifications
You must be signed in to change notification settings - Fork 595
Open
Description
Some upcoming chrome change has caused html labels to stop rendering correctly. For example this page no longer works on chrome dev:
https://dagrejs.github.io/project/dagre-d3/latest/demo/interactive-demo.html
I believe the issue is with how chrome is rendering the foreignObject node when it is initially created.
Removing this line seems to fix the issue:
dagre-d3/lib/label/add-html-label.js
Line 8 in 10e37c7
.attr("width", "100000"); |
If you can't remove the line, it appears you can force chrome to re-render it like this
document.querySelectorAll('foreignObject').forEach(x=>{
x.parentElement.style.display='none';
setTimeout(()=>{x.parentElement.style.display=''},1);
})
Metadata
Metadata
Assignees
Labels
No labels