I am trying to use flex height for the tree with virtual scroll. However, when I set the tree container to 100%
and set the flex height, the chunk of data is missing from the screen during the scroll.
I have added the working example here https://stackblitz.com/edit/angular-d2mavw
If I open the last rootDynamic49 node, only 20 children are visible. However, it has 50 children. On the other hand, when I set the height to 100px
, all the children are visible.
Is there a way where I can keep the first div fixed on the top position and add scroll only for the tree with the flexible height?