charmbracelet/lipgloss

docs(table): note that `Offset` must be set *after* `Rows` or it does nothing.

Closed this issue · 1 comments

If the table's rows are not set before Offset, it does nothing. This makes sense, but should be noted in the GoDoc

This works:

table := New().
	Rows(rows...).
	Offset(80).
	Height(45)

This doesn't

table := New().
	Offset(80).
	Rows(rows...).
	Height(45)

Not sure if this is a thing for lists too 🤔 I've only seen this with tables, haven't tried to break lists...