TUN-3335: Dynamically set connection table size for UI

This commit is contained in:
Rachel Williams 2020-08-27 12:04:45 -07:00 committed by Areg Harutyunyan
parent 250bc54110
commit f99b6c6421
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func (data *uiModel) LaunchUI(ctx context.Context, logger logger.Service, tunnel
grid.SetColumns(20, 0)
// SetRows takes a value for each row, representing the size of the row
grid.SetRows(1, 1, 11, 1, 0)
grid.SetRows(1, 1, len(data.connections), 1, 0)
// AddItem takes a primitive tview type, row, column, rowSpan, columnSpan, minGridHeight, minGridWidth, and focus
grid.AddItem(tview.NewTextView().SetText("Tunnel:"), 0, 0, 1, 1, 0, 0, false)