Skip to content

Commit

Permalink
Version 0.7.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamran Asif committed Feb 6, 2017
1 parent b2c4e2c commit de02f1d
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 15 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.10
* FixedDataTable v0.7.11
*
* 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.10
* FixedDataTable v0.7.11
*
* 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.10
* FixedDataTable v0.7.11
*
* Copyright Schrodinger, LLC
* All rights reserved.
Expand Down
17 changes: 14 additions & 3 deletions dist/fixed-data-table.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* FixedDataTable v0.7.10
* FixedDataTable v0.7.11
*
* 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.10';
FixedDataTableRoot.version = '0.7.11';
module.exports = FixedDataTableRoot;

/***/ },
Expand Down Expand Up @@ -1186,6 +1186,18 @@ return /******/ (function(modules) { // webpackBootstrap

this._scrollHelper.setViewportHeight(bodyHeight);

// This calculation is synonymous to Element.scrollTop
var scrollTop = Math.abs(firstRowOffset - this._scrollHelper.getRowPosition(firstRowIndex));
// This case can happen when the user is completely scrolled down and resizes the viewport to be taller vertically.
// This is because we set the viewport height after having calculated the rows
if (scrollTop !== scrollY) {
scrollTop = maxScrollY;
scrollState = this._scrollHelper.scrollTo(scrollTop);
firstRowIndex = scrollState.index;
firstRowOffset = scrollState.offset;
scrollY = scrollState.position;
}

// The order of elements in this object metters and bringing bodyHeight,
// height or useGroupHeader to the top can break various features
var newState = _extends({
Expand All @@ -1204,7 +1216,6 @@ return /******/ (function(modules) { // webpackBootstrap
scrollContentHeight: scrollContentHeight,
scrollX: scrollX,
scrollY: scrollY,

// These properties may overwrite properties defined in
// columnInfo and props
bodyHeight: bodyHeight,
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.7.10",
"version": "0.7.11",
"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.10';
FixedDataTableRoot.version = '0.7.11';
module.exports = FixedDataTableRoot;

0 comments on commit de02f1d

Please sign in to comment.