gka / d3-jetpack

🚀 Nifty convenience wrappers that speed up your daily work with d3.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG element has position:absolute. Why?

janwillemtulp opened this issue · comments

The SVG element that is created in the constructor has a style property position: 'absolute'. Why? Currently this messes up my design, and I have to disable it explicitly. It would be great if this would be removed, and if you want it, you can set it yourself.

I added it to support stacking different divs.

Maybe it should be disabled if you're not passing in layers, along with a note in the docs explaining that layers also sets position: 'absolute'.

Sorry about all the rough edges! Thanks for the bug reports.

No problem! The workaround was easy! :)