Skip to content

The wrap parameter for OptionList no longer works #5418

@davep

Description

@davep

Starting in July 2023 (cb819fa ) OptionList has had a parameter to control if options should auto-wrap or not. As of Textual 1.0 it would appear that this parameter is now a no-op. Setting it to False has no effect and, after a brief look at the OptionList code, I can't see the value being actually used any more.

This will also affect SelectionList as it is designed to work as a non-wrapping descendent of OptionList.

This does, of course, potentially break the layout of any application that is relying on an OptionList that truncates rather than wraps its Options.

A quick jog back through the blame history suggests that the regression started around here: 1a5fbb3

Metadata

Metadata

Assignees

No one assigned

    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