fast-table
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -145,3 +145,3 @@ 'use strict'; | ||
BodyWrapper, | ||
{ className: 'tbody', style: { height: bodyHeight } }, | ||
{ className: 'tbody', style: { height: bodyHeight, minHeight: table.props.rowHeight } }, | ||
this.renderRows() | ||
@@ -148,0 +148,0 @@ ); |
@@ -19,2 +19,4 @@ 'use strict'; | ||
var _reactDom = require('react-dom'); | ||
var _classnames = require('classnames'); | ||
@@ -100,7 +102,6 @@ | ||
_this.updateColumn = function () { | ||
var headRows = _this['headTable'] ? _this['headTable'].querySelectorAll('.thead') : _this['bodyTable'].querySelectorAll('.thead'); | ||
var scrollSize = (0, _Utils.measureScrollbar)(); | ||
var state = _this.store.getState(); | ||
if (headRows && headRows.length > 0) { | ||
var width = headRows[0].getBoundingClientRect().width - (state.hasScroll ? scrollSize : 0); | ||
if (_this['tableNode']) { | ||
var width = (0, _reactDom.findDOMNode)(_this['tableNode']).getBoundingClientRect().width - (state.hasScroll ? scrollSize : 0) - 2; | ||
_this.store.setState({ | ||
@@ -318,4 +319,3 @@ colWidth: _this.columnManager.getColWidth(width) | ||
flex: '0 1 ' + rowHeight + 'px', | ||
textAlign: 'center', | ||
color: 'inherit' | ||
textAlign: 'center' | ||
}; | ||
@@ -322,0 +322,0 @@ if (scrollbarWidth > 0) { |
{ | ||
"name": "fast-table", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "react table fast", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2435
92926