update Dropdown to accept maxHeight prop
See original GitHub issueIt would be very useful (especially with long lists) to be able to change the height of the Dropdown - the default settings allow for 5.7 options to be shown (optionHeight=35 and maxHeight=200).
A similar issue has been resolved (https://github.com/plotly/dash-core-components/pull/552) to allow the optionHeight prop to be passed, i.e.
dcc.Dropdown(
id = 'dropdown_id',
options = my_options,
optionHeight = 35,
# maxHeight = 80
),
so allow maxHeight to be passed in the same way.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
How to set max-height of dropdown selection area?
Searching in net I found “size” property, but that not what I I need : I want to have dropdown selection, which is...
Read more >Set Maximum Number of Items Shown in Dropdown List
update Dropdown to accept maxHeight prop It would be very useful (especially with long lists) to be able to change the height...
Read more >max-height - CSS: Cascading Style Sheets - MDN Web Docs
The max-height CSS property sets the maximum height of an element. It prevents the used value of the height property from becoming larger ......
Read more >Sizing · Bootstrap v5.0
You can also use max-width: 100%; and max-height: 100%; utilities as needed. ... "width": ( property: width, class: w, values: ( 25: 25%,...
Read more >Sizing - MUI System
The sizing properties: width , height , minHeight , maxHeight , minWidth , and maxWidth are using the following custom transform function for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

We’d gladly accept a PR if someone would like to add this prop. Please note that this repo is no longer in use, dash core components are now part of the main dash repo
Any update on this?