Skip to content

Commit

Permalink
Fix: Grids text overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze Xiao committed Jul 7, 2018
1 parent 1b5429d commit b4cda49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/viewers/doc/BoxExcel/virtualGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,15 @@ class VirtualGrid extends Component {
fontWeight: cell.s.bold ? 'bold' : 'normal'
}
: {};
const cellBgColor =
let cellBgColor =
cell && cell.s && cell.s.fgColor && cell.s.patternType
? {
backgroundColor: cell.s.fgColor.rgb
? `#${cell.s.fgColor.rgb}`
: _getBackgroundColor(cell.s.fgColor.indexed, fontColor)
}
: {};
cellBgColor = cell ? { backgroundColor: 'white' } : {};
const cellBorder = cell && cell.s && this._getBorder(cell.s);
const cellHidden = this._isHidden(rowIndex - 1, columnIndex - 1)
? { overflow: 'hidden', borderWidth: 0, padding: 0 }
Expand Down

0 comments on commit b4cda49

Please sign in to comment.