react-virtualized-sticky-tree
Advanced tools
Comparing version
@@ -121,2 +121,6 @@ import React from 'react'; | ||
/** | ||
* if false, then the width and height are not set as inline styles on the sticky tree element. | ||
*/ | ||
inlineWidthHeight?: boolean; | ||
/** | ||
* if true, the root node will be rendered (by calling rowRenderer() for the root id). Otherwise no root node will be rendered. | ||
@@ -123,0 +127,0 @@ */ |
@@ -610,8 +610,10 @@ "use strict"; | ||
let style = { overflow: 'auto', position: 'relative' }; | ||
if (this.props.width) { | ||
style.width = this.props.width; | ||
if (this.props.inlineWidthHeight !== false) { | ||
if (this.props.width) { | ||
style.width = this.props.width; | ||
} | ||
if (this.props.height) { | ||
style.height = this.props.height; | ||
} | ||
} | ||
if (this.props.height) { | ||
style.height = this.props.height; | ||
} | ||
return (react_1.default.createElement("div", { ref: this.elemRef, className: "rv-sticky-tree", style: style, onScroll: this.onScroll }, this.treeToRender)); | ||
@@ -618,0 +620,0 @@ } |
{ | ||
"name": "react-virtualized-sticky-tree", | ||
"description": "A React component for efficiently rendering tree like structures with support for position: sticky", | ||
"version": "3.0.0-beta12", | ||
"version": "3.0.0-beta13", | ||
"author": "Marc McIntyre <marchaos@gmail.com>", | ||
@@ -24,2 +24,3 @@ "license": "MIT", | ||
"build": "tsc", | ||
"tsc": "tsc", | ||
"start": "webpack serve --config ./webpack.config.js", | ||
@@ -26,0 +27,0 @@ "prepublish": "npm run build", |
58393
0.45%1149
0.52%