react-virtualized-sticky-tree
Advanced tools
Comparing version
@@ -468,2 +468,3 @@ 'use strict'; | ||
if (!isNaN(scrollTop)) { | ||
this.findClosestNode(scrollTop, this.state.currNodePos); | ||
this.setState({ scrollTop: scrollTop, scrollReason: SCROLL_REASON.REQUESTED }); | ||
@@ -770,2 +771,3 @@ } | ||
} | ||
return renderedRow; | ||
@@ -772,0 +774,0 @@ } |
@@ -468,2 +468,3 @@ 'use strict'; | ||
if (!isNaN(scrollTop)) { | ||
this.findClosestNode(scrollTop, this.state.currNodePos); | ||
this.setState({ scrollTop: scrollTop, scrollReason: SCROLL_REASON.REQUESTED }); | ||
@@ -770,2 +771,3 @@ } | ||
} | ||
return renderedRow; | ||
@@ -772,0 +774,0 @@ } |
{ | ||
"name": "react-virtualized-sticky-tree", | ||
"description": "A React component for efficiently rendering tree like structures with support for position: sticky", | ||
"version": "2.1.17", | ||
"version": "2.1.18", | ||
"author": "Marc McIntyre <marchaos@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -36,13 +36,15 @@ # react-virtualized-sticky-tree | ||
render( | ||
<StickyTree | ||
root={{ id: 'root', height: 30 }} | ||
width={width} | ||
height={height} | ||
getChildren={getChildren} | ||
rowRenderer={rowRenderer} | ||
renderRoot={true} | ||
overscanRowCount={20} | ||
/> | ||
); | ||
render() { | ||
return ( | ||
<StickyTree | ||
root={{ id: 'root', height: 30 }} | ||
width={width} | ||
height={height} | ||
getChildren={getChildren} | ||
rowRenderer={rowRenderer} | ||
renderRoot={true} | ||
overscanRowCount={20} | ||
/> | ||
); | ||
) | ||
``` | ||
@@ -49,0 +51,0 @@ |
99564
0.21%1984
0.1%160
1.27%