Fix alternating-row colours switching upon child expand-collapse

This commit is contained in:
Adomas Venčkauskas 2021-04-23 12:03:03 +03:00 committed by Dan Stillman
parent efc009f724
commit 431d7e1eaa

View file

@ -891,11 +891,11 @@ class VirtualizedTable extends React.Component {
if (this.props.alternatingRowColors) { if (this.props.alternatingRowColors) {
this._jsWindow.innerElem.style.background = ` this._jsWindow.innerElem.style.background = `
repeating-linear-gradient( repeating-linear-gradient(
0deg, 180deg,
${this.props.alternatingRowColors[0]}, ${this.props.alternatingRowColors[1]},
${this.props.alternatingRowColors[0]} ${this._rowHeight}px,
${this.props.alternatingRowColors[1]} ${this._rowHeight}px, ${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
) )
`; `;
} }