Giter Club home page Giter Club logo

Comments (4)

skidding avatar skidding commented on July 29, 2024

Hi @Deco,

The problem was there were some items with height bigger than the current number of rows (item "3" has height 3 and your grid has 2 rows.) We haven't figured out how to handle this so far, but it wasn't a big problem either, since we can control the number of rows and not allow a smaller number than the tallest widget.

A more peculiar item time we use is one with height=0, which means it will stretch 100%. I updated the demo with items that only have 1x or 100% height until in the meantime.

Can you please give it another go and let me know if you feel anything weird anymore?

from grid.

Deco avatar Deco commented on July 29, 2024

Yep, that fixed it.

Here's some ideas:

  • Encourage the use of overflow rules
  • Encourage the use of "carding" (information displayed shrinks to size)
  • Make "fake" extra rows for the large elements fill, but which cannot be populated with smaller cells

Nice work on this library, btw! Very handy.

from grid.

skidding avatar skidding commented on July 29, 2024

Very good insights. I'm thinking a combination between 1. or 3., since 2. means managing the content of a item and maybe breaching the scope of an agnostic lib.

Regardless, the lib should have some sanity checks and besides some weird overflowing the rest of the items should be positioned correctly. Leaving this open until I or someone else finds the time to right a quick regression test and make sure it doesn't break when you add an item larger than the grid configuration.

Thanks!

from grid.

solerman avatar solerman commented on July 29, 2024

I think this one is fixed already

from grid.

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.