bubbletea icon indicating copy to clipboard operation
bubbletea copied to clipboard

Rendering lines taller than the window height causes mis-renders

Open meowgorithm opened this issue 4 years ago • 2 comments

Currently, if you send more lines than the height of the window Bubble Tea rendering flips out. For cases like this we should probably drop lines from the top and keep only the bottom ones.

Thanks to @fiws for flagging this and @maaslalani for reminding us about it.

meowgorithm avatar Apr 14 '22 01:04 meowgorithm

I've run into this, it's pretty severe! I previously used https://github.com/vbauerster/mpb which didn't have this problem (for 100s and 100s of lines of content).

anacrolix avatar Sep 10 '22 12:09 anacrolix

A workaround is to catch WindowSizeMsg and limit the lines of output to the Height.

anacrolix avatar Sep 10 '22 15:09 anacrolix