Skip to content

Commit

Permalink
Version 0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamran Asif committed Sep 29, 2016
1 parent 87f7205 commit 5165c70
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 29 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.7.2
* FixedDataTable v0.7.3
*
* 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.7.2
* FixedDataTable v0.7.3
*
* 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.7.2
* FixedDataTable v0.7.3
*
* Copyright Schrodinger, LLC
* All rights reserved.
Expand Down
35 changes: 16 additions & 19 deletions dist/fixed-data-table.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* FixedDataTable v0.7.2
* FixedDataTable v0.7.3
*
* Copyright Schrodinger, LLC
* All rights reserved.
Expand Down Expand Up @@ -208,7 +208,7 @@ return /******/ (function(modules) { // webpackBootstrap
Table: _FixedDataTable2.default
};

FixedDataTableRoot.version = '0.7.2';
FixedDataTableRoot.version = '0.7.3';
module.exports = FixedDataTableRoot;

/***/ },
Expand Down Expand Up @@ -584,31 +584,32 @@ return /******/ (function(modules) { // webpackBootstrap
touchScrollEnabled: false
};
},
getInitialState: function getInitialState() /*object*/{
componentWillMount: function componentWillMount() {
var props = this.props;
var viewportHeight = (props.height === undefined ? props.maxHeight : props.height) - (props.headerHeight || 0) - (props.footerHeight || 0) - (props.groupHeaderHeight || 0);
this._scrollHelper = new _FixedDataTableScrollHelper2.default(props.rowsCount, props.rowHeight, viewportHeight, props.rowHeightGetter);
if (props.scrollTop) {
this._scrollHelper.scrollTo(props.scrollTop);
}
this._didScrollStop = (0, _debounceCore2.default)(this._didScrollStop, 200, this);

return this._calculateState(this.props);
},
componentWillMount: function componentWillMount() {
var scrollToRow = this.props.scrollToRow;
var scrollToRow = props.scrollToRow;
if (scrollToRow !== undefined && scrollToRow !== null) {
this._rowToScrollTo = scrollToRow;
}
var scrollToColumn = this.props.scrollToColumn;
var scrollToColumn = props.scrollToColumn;
if (scrollToColumn !== undefined && scrollToColumn !== null) {
this._columnToScrollTo = scrollToColumn;
}

var touchEnabled = this.state.touchScrollEnabled === true;
var viewportHeight = (props.height === undefined ? props.maxHeight : props.height) - (props.headerHeight || 0) - (props.footerHeight || 0) - (props.groupHeaderHeight || 0);
this._scrollHelper = new _FixedDataTableScrollHelper2.default(props.rowsCount, props.rowHeight, viewportHeight, props.rowHeightGetter);

if (props.scrollTop) {
this._scrollHelper.scrollTo(props.scrollTop);
}
this._didScrollStop = (0, _debounceCore2.default)(this._didScrollStop, 200, this);

var touchEnabled = props.touchScrollEnabled === true;

this._wheelHandler = new _ReactWheelHandler2.default(this._onScroll, this._shouldHandleWheelX, this._shouldHandleWheelY);
this._touchHandler = new _ReactTouchHandler2.default(this._onScroll, touchEnabled && this._shouldHandleWheelX, touchEnabled && this._shouldHandleWheelY);

this.setState(this._calculateState(props));
},
_shouldHandleWheelX: function _shouldHandleWheelX( /*number*/delta) /*boolean*/{
if (this.props.overflowX === 'hidden') {
Expand Down Expand Up @@ -1514,7 +1515,6 @@ return /******/ (function(modules) { // webpackBootstrap
* onWheel should is to be called with two arguments: deltaX and deltaY in
* this order
*/

function ReactWheelHandler(
/*function*/onWheel,
/*boolean|function*/handleScrollX,
Expand Down Expand Up @@ -2351,7 +2351,6 @@ return /******/ (function(modules) { // webpackBootstrap
* onTouchScroll should is to be called with two arguments: deltaX and deltaY in
* this order
*/

function ReactTouchHandler(
/*function*/onTouchScroll,
/*boolean|function*/handleScrollX,
Expand Down Expand Up @@ -3126,7 +3125,6 @@ return /******/ (function(modules) { // webpackBootstrap
* onMove is the callback that will be called on every mouse move.
* onMoveEnd is called on mouse up when movement has ended.
*/

function DOMMouseMoveTracker(
/*function*/onMove,
/*function*/onMoveEnd,
Expand Down Expand Up @@ -4210,7 +4208,6 @@ return /******/ (function(modules) { // webpackBootstrap
// and get it's position back
// All operations take amortized log(n) time where n is number of elements in
// the set.

var IntegerBufferSet = function () {
function IntegerBufferSet() {
_classCallCheck(this, IntegerBufferSet);
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.

4 changes: 2 additions & 2 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.7.2",
"version": "0.7.3",
"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.7.2';
FixedDataTableRoot.version = '0.7.3';
module.exports = FixedDataTableRoot;

0 comments on commit 5165c70

Please sign in to comment.