Skip to content

Commit

Permalink
v1.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jul 6, 2018
1 parent 3ed8701 commit 2313be7
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
15 changes: 8 additions & 7 deletions dist/infinite-tree.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! infinite-tree v1.16.1 | (c) 2018 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */
/*! infinite-tree v1.16.2 | (c) 2018 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -3295,13 +3295,14 @@ var Clusterize = function (_EventEmitter) {
itemHeight += Math.max(marginTop, marginBottom);
}

var blockHeight = itemHeight * this.options.rowsInBlock;
var blockHeight = itemHeight * this.options.rowsInBlock;
var clusterHeight = blockHeight * this.options.blocksInCluster;

return {
blockHeight,
clusterHeight: blockHeight * this.options.blocksInCluster,
itemHeight
};
return {
itemHeight: itemHeight,
blockHeight: blockHeight,
clusterHeight: clusterHeight
};
}
};

Expand Down
4 changes: 2 additions & 2 deletions dist/infinite-tree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/examples.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "infinite-tree",
"version": "1.16.1",
"version": "1.16.2",
"description": "A browser-ready tree library that can efficiently display a large amount of data using infinite scrolling.",
"homepage": "https://github.com/cheton/infinite-tree",
"main": "lib/index.js",
Expand Down
7 changes: 4 additions & 3 deletions src/clusterize.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,13 @@ class Clusterize extends EventEmitter {
itemHeight += Math.max(marginTop, marginBottom);
}

const blockHeight = itemHeight * this.options.rowsInBlock
const blockHeight = itemHeight * this.options.rowsInBlock;
const clusterHeight = blockHeight * this.options.blocksInCluster;

return {
itemHeight,
blockHeight,
clusterHeight: blockHeight * this.options.blocksInCluster,
itemHeight
clusterHeight
};
}
}
Expand Down

0 comments on commit 2313be7

Please sign in to comment.