I am currently using cdk-virtual-scroll with the experimental autosize strategy from @angular/cdk-experimental
When an element's height in the virtual scroll changes (specifically when something gets much shorter), virtual scroll seems unaware that it needs to call in more elements to maintain a filled viewport.
I tried looking into the source of autosize, but I lack the experience to know what's going on in there:
https://github.com/angular/components/blob/main/src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts
I can think of a few approaches to solve this problem (eg. find some way to trigger the existing mechanism for re-rendering), but so far those have been unsuccessful.
Can I hint to the virtual scroll that an element changed size somehow? Can I tell it "hey idiot, make sure you have enough elements loaded"?
Thanks in advance—sorry no stackblitz for this (yet)