Giter Site home page Giter Site logo

Comments (6)

PatrickWolleb avatar PatrickWolleb commented on September 27, 2024

Issue was I had the canvas nested inside a section tag.

<section id="editor">
        <canvas id="c"></canvas>
 </section>

Changed to the below

 <section id="editor"></section>
 <canvas id="c"></canvas>

Any ideas?

from fabricjs.com.

PatrickWolleb avatar PatrickWolleb commented on September 27, 2024

Even stranger, setting the CSS background on the canvas element is what caused the issue! Un-nesting solved it because the CSS selector did not target the canvas tag anymore but real issue is CSS background.

Any ideas on why would be appreciated.

from fabricjs.com.

kangax avatar kangax commented on September 27, 2024

I don't really understand the issue here. Can you please make jsfiddle showing the problem.

from fabricjs.com.

PatrickWolleb avatar PatrickWolleb commented on September 27, 2024

Here you go
http://jsfiddle.net/2c495/3/

Observe:

  • removing background will fix it
  • Noticed when '#c' is used as css selector instead of 'canvas' it works

Thanks

from fabricjs.com.

kangax avatar kangax commented on September 27, 2024

1.2.0 is a very old version. Check if this happens with 1.3.x

from fabricjs.com.

PatrickWolleb avatar PatrickWolleb commented on September 27, 2024

Occurring with 1.3.x as well. Anyway, I close the issue.

from fabricjs.com.

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.