Open emlai opened 5 years ago
I can confirm this on my smartphone for chrome. Firefox working fine. See https://bugs.chromium.org/p/chromium/issues/detail?id=738022&q=foreign-object
desktop: window.devicePixelRatio is 1 mobile: window.devicePixelRatio is 2
mobile
When I set
labelType: 'html'
for my nodes, Dagre seems to reserve 2 times as much space for the label rectangle.I'm using a 4K monitor in case that could affect this.
Without
labelType: 'html'
:With
labelType: 'html'
:Here you can see that the width and height of the
foreignObject
is exactly 2x the width and height of the actual html content:Inspector screenshots
![screenshot 25](https://user-images.githubusercontent.com/7543552/53696610-7ca29600-3dd1-11e9-87ab-f67471a9398c.png) ![screenshot 26](https://user-images.githubusercontent.com/7543552/53696611-7d3b2c80-3dd1-11e9-85a2-460f7c5dc993.png)