fix(examples): add missing WithWidth to table example (#1598)
Without an explicit width, the table renders with no rows visible. Width should be the sum of all column widths (34) plus borders (8) = 42. Fixes #1597
This commit is contained in:
parent
c7513746b1
commit
110a919113
1 changed files with 1 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ func main() {
|
|||
table.WithRows(rows),
|
||||
table.WithFocused(true),
|
||||
table.WithHeight(7),
|
||||
table.WithWidth(42),
|
||||
)
|
||||
|
||||
s := table.DefaultStyles()
|
||||
|
|
|
|||
Loading…
Reference in a new issue