components
components copied to clipboard
bug(cdk-virtual-scroll-viewport): autosize miscalculates and adds a blank space after scroll list
trafficstars
Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When we want to use a cdk-virtual-scroll-viewport with autosize feature for extendable list items we are having a blank space after the content. Blank space is not there when there are only a couple of items on the list however when we have a huge list it's possible to have it.
Reproduction
Steps to reproduce:
- Have a list with
and map some extendable card items in it. - Have a long list and scroll till the end. You will see there is a blank viewport at the end with no context.
Expected Behavior
No blank area after the content. autosize should stop expanding the viewport height after arriving at the last list item on the list.
Actual Behavior
blank area after the content and height changes after every up and down scroll.
Environment
- Angular: 13.2.4
- CDK/Material: 13.3.9
- Browser(s): Safari/ Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows/ macOS