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
Select
When the Select widget is first expanded, the initial selected value is out of view when it appears further down in the list of options.
from textual.app import App, ComposeResult from textual.widgets import Select class SelectApp(App): def compose(self) -> ComposeResult: yield Select.from_values( range(20), value=15, ) if __name__ == "__main__": app = SelectApp() app.run()
The text was updated successfully, but these errors were encountered:
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
Sorry, something went wrong.
I think the problem is when the Select is first expanded, where this calls OptionList.scroll_to_highlight the region values here are all zeros:
OptionList.scroll_to_highlight
textual/src/textual/widgets/_option_list.py
Lines 891 to 896 in 8d99130
No branches or pull requests
When the
Select
widget is first expanded, the initial selected value is out of view when it appears further down in the list of options.The text was updated successfully, but these errors were encountered: