Skip to content

List Model is not full screen #247

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

You must be logged in to vote

At first glance it looks like your list simply doesn't have the right dimensions because it never receives an initial tea.WindowSizeMsg. I assume resizing your terminal would make the list snap back to an appropriate size?

If you want to dynamically initialize the list you would have to remember the last tea.WindowSizeMsg in your model and call m.myList.SetSize after creating the list.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by muesli
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #245 on February 27, 2022 19:47.