Skip to content

Calculate # of items that fit in the viewport #912

Answered by petyosi
pashasadri asked this question in Q&A
Discussion options

You must be logged in to vote

There's a relatively low-level callback - totalListHeightChanged that you can use to do that. Here's a crude example.

A cool enhancement for both the list and the table would be a minHeight / maxHeight (or, maybe, even, minItemsDisplayed/maxItemsDisplayed) props that would make such scenarios trivial for the developer.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pashasadri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants