Skip to content

[BUG] maxHeight doesn't extend background height in dcc.Dropdown #2529

Closed
@pfbuxton

Description

The "maxHeight" prop should expand the height of the dropdown, which it does. However, it does not expand the height of the background.

If you have a look at the Dash example: https://dash.plotly.com/dash-core-components/dropdown you can see that normally "Rome" would not fit on the dropdown. With maxHeight=300 "Rome" now fits in the dropdown, but but the white background height has not been increased (same issue in dark mode).
Capture

Minimal example of issue taken from dash dash/documentation

from dash import dcc

dcc.Dropdown(
    ['New York City', 'Montreal', 'Paris', 'London', 'Amsterdam', 'Berlin', 'Rome'],
    'Paris', id='height-example-dropdown', maxHeight=300
)

Note, this issue was reported in #2225 but the fault was incorrectly attributed to interaction with DataTable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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