-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SelectionList crashes on content overflow or resize #2969
Comments
Thanks. That looks to be a duplicate of #2900 so I'll close this in favour of the earlier report. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Ok. Sorry for not noticing and posting a duplicate. I will at least add the code that dynamically changes the content length to #2900. |
Absolutely no need to apologise; it's not always simple to find other issues and we'd sooner have a duplicate report than no report at all! :-) |
When using SelectionList and resizing the terminal so that the text cannot fit in the screen, the program will crash. I think it also works with OptionList.
Environment:
Textual version: 0.30.0
Python version: 3.10.8
Code to reproduce:
The last error printed is:
I have tried to size my content upon resize event, but it doesn't solve the issue. In this case, it will even crash on increasing the terminal size. I assume that the function that sets the content length might be called before the the code that crashes.
Code to reproduce the crash upon increasing:
The text was updated successfully, but these errors were encountered: