mirror of https://github.com/rivo/tview.git
Fixed Table cell background colors for column-only selections.
This commit is contained in:
parent
e349b48fe4
commit
95e3124245
3
table.go
3
table.go
|
@ -655,6 +655,9 @@ ColumnLoop:
|
|||
leftCell := getCell(row, column-1)
|
||||
if leftCell != nil {
|
||||
if cell.BackgroundColor == leftCell.BackgroundColor {
|
||||
if t.columnsSelectable && column == t.selectedColumn {
|
||||
bgColor = cell.BackgroundColor
|
||||
}
|
||||
ch, _, style, _ := screen.GetContent(x+columnX, y+rowY)
|
||||
screen.SetContent(x+columnX, y+rowY, ch, nil, style.Background(bgColor))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue