Skip to content

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

Open
@gs-vkinti

Description

@gs-vkinti

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions