Skip to content

Commit 6739027

Browse files
emrousselwuweiweiwu
authored andcommitted
Allow users to override default table row styles (bvaughn#1175)
1 parent f79c47e commit 6739027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/Table/Table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,11 @@ export default class Table extends React.PureComponent {
406406
className: cn('ReactVirtualized__Table__headerRow', rowClass),
407407
columns: this._getHeaderColumns(),
408408
style: {
409-
...rowStyleObject,
410409
height: headerHeight,
411410
overflow: 'hidden',
412411
paddingRight: scrollbarWidth,
413412
width: width,
413+
...rowStyleObject,
414414
},
415415
})}
416416

@@ -635,10 +635,10 @@ export default class Table extends React.PureComponent {
635635
const className = cn('ReactVirtualized__Table__row', rowClass);
636636
const flattenedStyle = {
637637
...style,
638-
...rowStyleObject,
639638
height: this._getRowHeight(index),
640639
overflow: 'hidden',
641640
paddingRight: scrollbarWidth,
641+
...rowStyleObject,
642642
};
643643

644644
return rowRenderer({

0 commit comments

Comments
 (0)