React-beautiful-dnd: Missing documentation: mixed sized items within virtual lists

Created on 12 Feb 2020  路  6Comments  路  Source: atlassian/react-beautiful-dnd

Would it be possible to add an example of mixed sized items with virtual lists? I am struggling to implement it and I believe this would help many people as most lists have mixed sized items.

docs 馃摉 help wanted 馃憢

Most helpful comment

It is, but this example does not implement virtual list. The challenge is virtual list and mixed height together.

All 6 comments

@gregoryforel can you expand on what you mean please?

@Emmanuella-Aninye sure! The examples of virtual lists and virtual kanban are only showing how to implement rows with the same fixed height. I wasn't able to implement a virtual list with items that each have a different height.

@gregoryforel is this kind of what you're speaking about? This is their example with a kanban like approach. I think the individual items are different heights
https://react-beautiful-dnd.netlify.com/iframe.html?id=board--simple

It is, but this example does not implement virtual list. The challenge is virtual list and mixed height together.

@gregoryforel The suggested method for dealing with dynamic height items in react-virtualized is to use their CellMeasurer component (https://bvaughn.github.io/react-virtualized/#/components/CellMeasurer). This component wraps each item in a list and caches the item's dimensions which are then passed to the List component which works out item positions in the list based on the cached dimensions

I could also use some help/example for using react-virtualized's CellMeasurer component!

@gregoryforel were you able to implement it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexreardon picture alexreardon  路  3Comments

vrg-success picture vrg-success  路  3Comments

h182032 picture h182032  路  3Comments

ibash picture ibash  路  3Comments

erganmedia picture erganmedia  路  3Comments