tree icon indicating copy to clipboard operation
tree copied to clipboard

Virtual tree Auto scroll to top when moving node to top

Open gs-vkinti opened this issue 1 year ago • 0 comments

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>

gs-vkinti avatar Mar 25 '24 11:03 gs-vkinti