Skip to content

Select initial value is out of view when first expanded #5255

@TomJGooding

Description

@TomJGooding

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()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions