You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I put this code all items are not displayed when I scrolled down (only 41 items are displayed instead of 73):
<MatVirtualScroll @ref="_lazyLoading" style="overflow-y: auto; height: 100vh" ItemType="DTO.MusteringCardholderDetails" Items="@FilteredCardHolders" ItemHeight="60">
Same thing if I put height like 300px the scrollbar is here but I cannot see all of my items (44 in this case instead of 73)
To fix it quickly in my code I decide to change the height by setting 100% instead of 100vh or XXXpx. And in this case no items are displayed. The scrollbar is displayed and the right place in allocate to the scrollbar but the component don't display anything. I try also to remove ItemHeight but same result.
The only way I found to display all results is to harcode a value which is bigger to my real size (in my case 4380px or higher). The problem is my list is my list is dynamic so it is definitely not a right way.
I also try something like that in the code but it does not compile:
style="overflow-y: auto; height:@(this.ScrollSize)px;"
private int ScrollSize => this.FilteredCardHolders.Count * 60;
Can someone take a lool at this ?
Thanks
The text was updated successfully, but these errors were encountered:
I found a bug in MatVirtualScroll.
If I put this code all items are not displayed when I scrolled down (only 41 items are displayed instead of 73):
<MatVirtualScroll @ref="_lazyLoading" style="overflow-y: auto; height: 100vh" ItemType="DTO.MusteringCardholderDetails" Items="@FilteredCardHolders" ItemHeight="60">
Same thing if I put height like 300px the scrollbar is here but I cannot see all of my items (44 in this case instead of 73)
To fix it quickly in my code I decide to change the height by setting 100% instead of 100vh or XXXpx. And in this case no items are displayed. The scrollbar is displayed and the right place in allocate to the scrollbar but the component don't display anything. I try also to remove ItemHeight but same result.
The only way I found to display all results is to harcode a value which is bigger to my real size (in my case 4380px or higher). The problem is my list is my list is dynamic so it is definitely not a right way.
I also try something like that in the code but it does not compile:
style="overflow-y: auto; height:@(this.ScrollSize)px;"
private int ScrollSize => this.FilteredCardHolders.Count * 60;
Can someone take a lool at this ?
Thanks
The text was updated successfully, but these errors were encountered: