question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specifying a different itemHeight per item/group?

See original GitHub issue

We have a GroupedVirtuoso list with known item heights. But each item and group header has a different height.

Is it possible to achieve this using the itemHeight prop ? Like passing a function instead of a number, function that would take a group index or an item index and would return an itemHeight.

something like

<GroupedVirtuoso
itemHeight={(itemIndex) => number}
groupHeight={(groupIndex) => number}
/>

BTW. I cannot use the auto sizer feature, because most of my items have negative margins for imbrication/overlapping.

Thx

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
petyosicommented, Jan 8, 2020

@Ethorsen I found the culprit. I will look into a few other issues and release an update during the weekend.

0reactions
Ethorsencommented, Jan 13, 2020

Yes, working nicely and as expected since 12.6. Thx a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the height of v-list-item in v-list-item-group
1 Answer 1. Sorted by: Reset to default. Highest score (default) ...
Read more >
ItemGroup Element (MSBuild) - Microsoft Learn
Contains a set of user-defined Item elements. Every item used in an MSBuild project must be specified as a child of an ItemGroup...
Read more >
v-list-item-group with v-virtual-scroll - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >
List of Object as DataSource, One item per page in Reporting
Generally the reports are paged based on the item/group KeepTogether property, section PageBreak property and the rendered item height/width. In ...
Read more >
The basics of items - monday.com Support
You can add a new item to the bottom of a group by clicking into into ... To do so, click on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found