🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-virtualized-sticky-tree

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-virtualized-sticky-tree - npm Package Compare versions

Comparing version

to
3.0.0-beta13

4

lib/src/StickyTree.d.ts

@@ -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 @@ */

12

lib/src/StickyTree.js

@@ -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",