Fix alternating-row colours switching upon child expand-collapse
This commit is contained in:
parent
efc009f724
commit
431d7e1eaa
1 changed files with 4 additions and 4 deletions
|
@ -891,11 +891,11 @@ class VirtualizedTable extends React.Component {
|
|||
if (this.props.alternatingRowColors) {
|
||||
this._jsWindow.innerElem.style.background = `
|
||||
repeating-linear-gradient(
|
||||
0deg,
|
||||
${this.props.alternatingRowColors[0]},
|
||||
${this.props.alternatingRowColors[0]} ${this._rowHeight}px,
|
||||
180deg,
|
||||
${this.props.alternatingRowColors[1]},
|
||||
${this.props.alternatingRowColors[1]} ${this._rowHeight}px,
|
||||
${this.props.alternatingRowColors[1]} ${this._rowHeight * 2}px
|
||||
${this.props.alternatingRowColors[0]} ${this._rowHeight}px,
|
||||
${this.props.alternatingRowColors[0]} ${this._rowHeight * 2}px
|
||||
)
|
||||
`;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue