Giter VIP home page Giter VIP logo

Comments (2)

wout avatar wout commented on August 16, 2024

Well, from my point of view I would say, don't touch elements you don't own. The svg canvas is managed by svg.js and is therefore property of the library. The wrapping div on the other hand is your property so you should use that element to position it to your heart's content.

It's indeed a hack for a nasty bug in safari and for the time being the best workaround. I know this problem can be solved in another way and I have written it in the past. But because the hack alone required a lot of code I went with the current implementation. After all it my goal to keep the library as small as possible and to eliminate unnecessary code.

I can't think of a reason but if you REALLY need the svg element to be positioned absolute you could apply the position:absolute using javascript after the DOM has initialized.

from svg.js.

kgryte avatar kgryte commented on August 16, 2024

Okay. I will do as you propose. Thanks for the response.

from svg.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.