Skip to content

Commit

Permalink
Version 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamran Asif committed Jun 6, 2016
1 parent b4394d1 commit 08425df
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/fixed-data-table-base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* FixedDataTable v0.6.1
* FixedDataTable v0.6.2
*
* Copyright Schrodinger, LLC
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion dist/fixed-data-table-base.min.css

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

2 changes: 1 addition & 1 deletion dist/fixed-data-table-style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* FixedDataTable v0.6.1
* FixedDataTable v0.6.2
*
* Copyright Schrodinger, LLC
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion dist/fixed-data-table-style.min.css

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

2 changes: 1 addition & 1 deletion dist/fixed-data-table.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* FixedDataTable v0.6.1
* FixedDataTable v0.6.2
*
* Copyright Schrodinger, LLC
* All rights reserved.
Expand Down
27 changes: 19 additions & 8 deletions dist/fixed-data-table.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* FixedDataTable v0.6.1
* FixedDataTable v0.6.2
*
* Copyright Schrodinger, LLC
* All rights reserved.
Expand Down Expand Up @@ -195,7 +195,7 @@ return /******/ (function(modules) { // webpackBootstrap
Table: FixedDataTable
};

FixedDataTableRoot.version = '0.6.1';
FixedDataTableRoot.version = '0.6.2';
module.exports = FixedDataTableRoot;

/***/ },
Expand Down Expand Up @@ -3431,12 +3431,24 @@ return /******/ (function(modules) { // webpackBootstrap
var rowPositionGetter = props.rowPositionGetter;

var rowsToRender = this.state.rowsToRender;

//Sort the rows, we slice first to avoid changing original
var sortedRowsToRender = rowsToRender.slice().sort(function (a, b) {
return a - b;
});
var rowPositions = {};

//Row position calculation requires that rows are calculated in order
sortedRowsToRender.forEach(function (rowIndex) {
rowPositions[rowIndex] = rowPositionGetter(rowIndex);
});

this._staticRowArray.length = rowsToRender.length;

for (var i = 0; i < rowsToRender.length; ++i) {
var rowIndex = rowsToRender[i];
var currentRowHeight = this._getRowHeight(rowIndex);
var rowOffsetTop = rowPositionGetter(rowIndex);
var rowOffsetTop = rowPositions[rowIndex];

var hasBottomBorder = rowIndex === props.rowsCount - 1 && props.showLastRowBorder;

Expand Down Expand Up @@ -5394,11 +5406,10 @@ return /******/ (function(modules) { // webpackBootstrap
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* This is to be used with the FixedDataTable. It is a read line
* that when you click on a column that is resizable appears and allows
* you to resize the corresponding column.
* This is to be used with the FixedDataTable. It is a header icon
* that allows you to reorder the corresponding column.
*
* @providesModule FixedDataTableColumnResizeHandle.react
* @providesModule FixedDataTableColumnReorderHandle.react
* @typechecks
*/

Expand Down Expand Up @@ -5427,7 +5438,7 @@ return /******/ (function(modules) { // webpackBootstrap
onColumnReorderEnd: PropTypes.func,

/**
* Column key for the column being resized.
* Column key for the column being reordered.
*/
columnKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
},
Expand Down
2 changes: 1 addition & 1 deletion dist/fixed-data-table.min.css

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

8 changes: 4 additions & 4 deletions dist/fixed-data-table.min.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": "fixed-data-table-2",
"version": "0.6.1",
"version": "0.6.2",
"description": "A React table component designed to allow presenting thousands of rows of data.",
"main": "main.js",
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/FixedDataTableRoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ var FixedDataTableRoot = {
Table: FixedDataTable,
};

FixedDataTableRoot.version = '0.6.1';
FixedDataTableRoot.version = '0.6.2';
module.exports = FixedDataTableRoot;

0 comments on commit 08425df

Please sign in to comment.