Comments (4)
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.
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.
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.
I think this one is fixed already
from grid.
Related Issues (20)
- How to use with npm and webpack? HOT 7
- Type Definition file HOT 1
- Bower reports mismatch during v0.3.1 installation HOT 1
- Initial render when x and y attributes are not provided works for horizontal direction but in vertical direction it just stacks one under the other. HOT 2
- Enabling and disabling drag and drop HOT 1
- how to size boxes?
- Can jQuery be removed? HOT 7
- Overlapping item
- Integrate with Vuejs
- Needs Accessibility Review
- Minimal required CSS HOT 1
- New items being stack one below previous item
- this._adjustSizeOfItems is not a function
- change direction to ltr and rtl
- Acessing the underlying GridList object from jQuery plugin
- Not working in NodeApp
- The demo website has js errors
- How can I swap object without moving to the right?
- Can't create a grid
- limiting ammount of boxes on load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grid.