Skip to content

Virtual tree Auto scroll to top when moving node to top #811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gs-vkinti opened this issue Mar 25, 2024 · 0 comments
Open

Virtual tree Auto scroll to top when moving node to top #811

gs-vkinti opened this issue Mar 25, 2024 · 0 comments

Comments

@gs-vkinti
Copy link

We have larger tree structures to render, we faced performance issues with rc-tree. The we have added the virtualization with help virtual & itemHeight and height props. performance wise it was good but we are face issue when we are trining to move the 500th node (not present at DOM first load) to top then tree was not auto scrolling to top.

<RcTree
    ref={rcTreeRef}
    motion={motion}
    onDrop={onDrop}
    expandedKeys={expandedKeys}
    onExpand={onExpand}
    selectedKeys={selectedKeys}
    onSelect={onSelectNode}
    height={400}
    itemHeight={30}
    virtual
    draggable
>
   {treeNodes}
</RcTree>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant