Skip to content

Commit

Permalink
Allow users to override default table row styles (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
emroussel authored and wuweiweiwu committed Oct 3, 2018
1 parent f79c47e commit 6739027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,11 @@ export default class Table extends React.PureComponent {
className: cn('ReactVirtualized__Table__headerRow', rowClass),
columns: this._getHeaderColumns(),
style: {
...rowStyleObject,
height: headerHeight,
overflow: 'hidden',
paddingRight: scrollbarWidth,
width: width,
...rowStyleObject,
},
})}

Expand Down Expand Up @@ -635,10 +635,10 @@ export default class Table extends React.PureComponent {
const className = cn('ReactVirtualized__Table__row', rowClass);
const flattenedStyle = {
...style,
...rowStyleObject,
height: this._getRowHeight(index),
overflow: 'hidden',
paddingRight: scrollbarWidth,
...rowStyleObject,
};

return rowRenderer({
Expand Down

0 comments on commit 6739027

Please sign in to comment.