Evertras / bubble-table

A customizable, interactive table component for the Bubble Tea framework
MIT License
455 stars 27 forks source link

Upgrading bubbletea v0.25.0 → bubbletea v0.26.6 breaks table rendering #178

Closed dnalor closed 3 months ago

dnalor commented 4 months ago

ttui-rend

(if you scroll over the rows, they are redrawn correctly)

Most likely a problem in my application, but afaik I'm not anything unusual with the table, so any suggestion will be appreciated.

Code is at codeberg if you want to have a look (internal/tui/tui.go)

Evertras commented 4 months ago

When I git clone your repository and update bubbletea v0.26.6, I don't seem to see this behavior out of the gate. However, I do see all kinds of artifacts if I resize the terminal, regardless of whether I update or not. I also see this with the flex example locally here, though, so maybe I need to investigate this more to see if there's some redrawing thing we're both missing.

dnalor commented 3 months ago

Weird, now I also cannot reproduce the behaviour shown in the screenshot above. Maybe some othere package was updated in the meantime?

Currently, when resizing, if the table isn't smaller than the terminal, everything works fine.

However, if there's a vertical resize beyond table size:

This happens for all combinations of bubbletea (v0.25.0, v0.26.6) and bubble-table (v0.15.6, v0.16.1) I tested, so it seems it's not a new issue.

Evertras commented 3 months ago

That'd be #121 in action, it seems.

dnalor commented 3 months ago

Indeed, even though it's supposed to be fixed.

Anyway, since I can't reproduce the initial issue anymore, and this is now something else and not related to the table, I'm closing this.

Thanks for looking into it!