Skip to content
Myr

fix(examples): add missing `WithWidth` to table example (#1598)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Shivang Srivastava · committed by GitHub · parent c751374 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:examples/table/main.go+1 added
160 unmodified lines
161 table.WithColumns(columns),162 table.WithRows(rows),163 table.WithFocused(true),164 table.WithHeight(7),165 table.WithWidth(42),166 )167168 s := table.DefaultStyles()169 s.Header = s.Header.
16 unmodified lines