Skip to content

Struggling to resize components within TUI #544

Answered by muesli
purpleclay asked this question in Q&A
Discussion options

You must be logged in to vote

This issue comes down to lipgloss filling the available width with spaces, so the background color gets applied. When you resize the terminal, it automatically word-wraps the previous content. It looks like iTerm probably doesn't realize it's wrapping empty cells, while Alacritty does.

This is non-trivial to solve because we can't prevent iTerm from wrapping these characters: this is happening outside of tea's renderer in the terminal itself.

One solution is to fill up the available height with empty lines, but that's a solution that only works in alt-screen.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@purpleclay
Comment options

@purpleclay
Comment options

Comment options

You must be logged in to vote
5 replies
@purpleclay
Comment options

@purpleclay
Comment options

@muesli
Comment options

@purpleclay
Comment options

@muesli
Comment options

Answer selected by purpleclay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants