-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] maxHeight doesn't extend background height in dcc.Dropdown #2529
Comments
This error is caused by a special CSS class used for documentation. |
Hi @nickmelnikov82, |
As a very temporary workaround you can choose the color of the dropdown by adding this custom css: .Select div {
background-color: #FFFFFF;
} |
I wasn't able to replicate the error. For me, Rome is still within the white background.
|
I want to bump this issue again. The problem still occurs, but only when adding a https://community.plotly.com/t/maxheight-doesnt-extend-background-height-in-dcc-dropdown/75736/6 |
Identified issueThe Suggested solutionThe styles from Edit: Looking at the current style, the max height override is added for class WorkaroundAdding the custom styling
will undo the InvestigationAfter checking the css styles of the dropdown menu in the Chrome developer tools, I found the source of the issue. When opening the dropdown menu, the element with class If I remove the If you look carefully in the css styling when no
Now, if you look at the styles when a
|
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).Minimal example of issue taken from dash dash/documentation
Note, this issue was reported in #2225 but the fault was incorrectly attributed to interaction with DataTable.
The text was updated successfully, but these errors were encountered: