Hi, I am trying to add a scroll bar Y-axis inside the DCC. Dropdown box as I don’t want it to expand as and when I select multiple items from the list.
Here is the screenshot.
here is the layout
html.Div([
dbc.Row([
dbc.Col([
dcc.Dropdown(
id='segment',
options=[{'label': i, 'value': i} for i in df['name_id'].unique()],
persistence=True, persistence_type='memory',
multi=True,
style={'width': '500px', 'display': 'inline-block'}, optionHeight=70,
placeholder='Segment'),
], style={'margin-top': 80, 'margin-left': -315, 'display': 'table-cell', 'verticalAlign': 'middle',
})
])])
@lisiarend@MishD You can use the following code to solve this. It worked perfectly for me. style = {'max-height': '280px', 'overflow-y': 'auto'}
Hope this helps!