We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OptionList
It seems like the virtual_size might not be getting set correctly inside OptionList.
virtual_size
In the app below I'd expect the OptionList to be able to render at the maximum cell width in the child Lines.
Lines
This app:
from textual.app import App, ComposeResult from textual.widgets import OptionList class OptionListAutoWidth(App[None]): CSS = "OptionList{ width: auto; }" def compose(self) -> ComposeResult: yield OptionList(*["one", "two", "three"]) app = OptionListAutoWidth() app.run()
Produces this result:
Marking as a bug for now - feel free to update if I'm misunderstand.
The text was updated successfully, but these errors were encountered:
It's a line API widget. Looks like it is missing a get_content_width method.
get_content_width
Sorry, something went wrong.
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
Successfully merging a pull request may close this issue.
It seems like the
virtual_size
might not be getting set correctly insideOptionList
.In the app below I'd expect the OptionList to be able to render at the maximum cell width in the child
Lines
.This app:
Produces this result:
Marking as a bug for now - feel free to update if I'm misunderstand.
The text was updated successfully, but these errors were encountered: