Closed
Description
Describe
- Consider a pattern in which an item component does not render content under certain conditions.
- For example, in a list that renders only text, an empty string height is 0.
- In the short circuit evaluation below, EstimateSize is used as the offset value, even if I purposely set the size to 0.
vue-virtual-scroll-list/src/virtual.js
Lines 220 to 224 in 095a5d5
To Reproduce
Steps to reproduce the behavior:
- Scroll down to index 10. Although it is a buffer value, range does not change.
- Scroll down to index 14. The range has finally changed, but the padFront value seems to be incorrect.
Reproduce demo
- I only set height to 0 for items with even indices.
- https://codesandbox.io/s/live-demo-virtual-list-dulih
Other
- Version 2.2.0
- Browser chrome, safari