From f990c283b3308b7284bc38a79b732ede9ad06bda Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Tue, 26 Dec 2017 01:46:29 +0100 Subject: [PATCH] Bugfix. --- table.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/table.go b/table.go index 854f62e..8777058 100644 --- a/table.go +++ b/table.go @@ -1,8 +1,6 @@ package tview import ( - "log" - "github.com/gdamore/tcell" ) @@ -251,7 +249,6 @@ func (t *Table) Draw(screen tcell.Screen) { } // Clamp row offsets. - log.Print(t.rowOffset, t.selectedRow, height) if t.rowsSelectable { if t.selectedRow >= t.fixedRows && t.selectedRow < t.fixedRows+t.rowOffset { t.rowOffset = t.selectedRow - t.fixedRows @@ -331,7 +328,7 @@ func (t *Table) Draw(screen tcell.Screen) { } var skipped, lastTableWidth int ColumnLoop: - for column := 0; column <= t.lastColumn; column++ { + for column := 0; ; column++ { // If we've moved beyond the right border, we stop or skip a column. for tableWidth-1 >= width { // -1 because we include one extra column if the separator falls on the right end of the box. // We've moved beyond the available space.