react-virtualized
Advanced tools
Comparing version 5.1.0 to 5.1.1
Changelog | ||
------------ | ||
##### 5.1.1 | ||
Marked `FlexColumn` `width` property as required since ommitting this property can lead to uneven column layouts. | ||
### 5.1.0 | ||
@@ -5,0 +8,0 @@ Added `ColumnSizer` high-order component for auto-calculating column widths for `Grid` cells. |
@@ -99,3 +99,3 @@ 'use strict'; | ||
/** Optional fixed width for this column */ | ||
width: _react.PropTypes.number | ||
width: _react.PropTypes.number.isRequired | ||
}, | ||
@@ -102,0 +102,0 @@ enumerable: true |
@@ -478,9 +478,4 @@ 'use strict'; | ||
value: function _getFlexStyleForColumn(column) { | ||
var flex = []; | ||
flex.push(column.props.flexGrow); | ||
flex.push(column.props.flexShrink); | ||
flex.push(column.props.width ? column.props.width + 'px' : 'auto'); | ||
var flexValue = column.props.flexGrow + ' ' + column.props.flexShrink + ' ' + column.props.width + 'px'; | ||
var flexValue = flex.join(' '); | ||
return { | ||
@@ -487,0 +482,0 @@ flex: flexValue, |
@@ -6,3 +6,3 @@ { | ||
"user": "bvaughn", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"homepage": "https://github.com/bvaughn/react-virtualized", | ||
@@ -9,0 +9,0 @@ "main": "dist/react-virtualized.js", |
@@ -79,4 +79,4 @@ /** @flow */ | ||
/** Optional fixed width for this column */ | ||
width: PropTypes.number | ||
width: PropTypes.number.isRequired | ||
} | ||
} |
@@ -390,13 +390,4 @@ /** @flow */ | ||
_getFlexStyleForColumn (column) { | ||
const flex = [] | ||
flex.push(column.props.flexGrow) | ||
flex.push(column.props.flexShrink) | ||
flex.push( | ||
column.props.width | ||
? `${column.props.width}px` | ||
: 'auto' | ||
) | ||
const flexValue = `${column.props.flexGrow} ${column.props.flexShrink} ${column.props.width}px` | ||
const flexValue = flex.join(' ') | ||
return { | ||
@@ -403,0 +394,0 @@ flex: flexValue, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
827703
11754