mirror of https://github.com/rivo/tview.git
SetOffset() also turns off end-tracking in Table. Fixes #238
This commit is contained in:
parent
c16128c927
commit
03d744dee3
4
list.go
4
list.go
|
@ -424,9 +424,7 @@ func (l *List) Draw(screen tcell.Screen) {
|
|||
|
||||
// Background color of selected text.
|
||||
if index == l.currentItem && (!l.selectedFocusOnly || l.HasFocus()) {
|
||||
|
||||
// Width of background color of selected item.
|
||||
var textWidth int = width
|
||||
textWidth := width
|
||||
if !l.highlightFullLine {
|
||||
if w := StringWidth(item.MainText); w < textWidth {
|
||||
textWidth = w
|
||||
|
|
Loading…
Reference in New Issue