GithubHelp home page GithubHelp logo

Comments (7)

martinRenou avatar martinRenou commented on May 21, 2024

Do you have an idea what could be the origin of this issue @kaiayoung ?

from ipydatagrid.

martinRenou avatar martinRenou commented on May 21, 2024

Can you reproduce it locally? I always have it the first time I display a grid on the page, the second time is fine

from ipydatagrid.

kaiayoung avatar kaiayoung commented on May 21, 2024

Thanks for reporting this! I haven't observed this yet, but it does look like font-awesome had not loaded yet. I had just relied on it being available from ipywidgets, but we may want to import it on the ipydatagrid frontend as well, to ensure that it is always available when needed.

from ipydatagrid.

martinRenou avatar martinRenou commented on May 21, 2024

Seems related to this: https://stackoverflow.com/questions/2756575/drawing-text-to-canvas-with-font-face-does-not-work-at-the-first-time

from ipydatagrid.

martinRenou avatar martinRenou commented on May 21, 2024

I did try to import font-awesome but it does not fix the issue..

from ipydatagrid.

kaiayoung avatar kaiayoung commented on May 21, 2024

I'm tempted to just manually draw an icon in the canvas with a path, and just avoid font-awesome completely... I think the config parameter has the height/width, etc for the renderer, so it may not be too bad?

from ipydatagrid.

martinRenou avatar martinRenou commented on May 21, 2024

I guess it would be fine drawing it indeed.

from ipydatagrid.

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.