CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.09k stars 490 forks source link

Virtual Scroll jumps weirdly #738

Open sumit-kothari opened 5 years ago

sumit-kothari commented 5 years ago

Issue

If I add a large tree and 3-4 levels deep with Virtual Scroll, the content gets loaded dynamically but while scrolling there seems to be some random jumps (i.e some nodes are ignored while scrolling).

Reproduce

https://stackblitz.com/edit/angular-tree-component-virtual-scroll-issue https://angular-tree-component-virtual-scroll-issue.stackblitz.io

Gif video

In video rootChildDynamic0.2 gets jump/ignored

angular-tree-component-virtual-scroll-issue

ashokdavuluri commented 3 years ago

Hi Sumit,

I am also facing the same issue. I have updated the nodeHeight: 50 in the options its worked fine for me. try to increase the nodeHeight and check.