forked from plotly/dash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix plotly#2653: unexpected behaviour of Dropdown
dcc.Dropdown has inconsistent layout flow compared to other common input components. The layout bug is normalised with CSS style display set to inline-block.
- Loading branch information
1 parent
c847882
commit 498c90b
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 15 additions & 3 deletions
18
components/dash-core-components/src/components/css/Dropdown.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
.dash-dropdown .Select-menu-outer { | ||
z-index: 1000; | ||
max-height: none; | ||
.dash-dropdown .Select-control { | ||
display: inline-block; | ||
width: 300px; | ||
vertical-align: middle; | ||
margin-left: 785px; | ||
} | ||
|
||
.dash-dropdown .Select-menu { | ||
max-height: none; | ||
display: inline-block; | ||
width: 300px; | ||
vertical-align: middle; | ||
} | ||
|
||
.dash-dropdown .Select-menu-outer { | ||
z-index: 1000; | ||
max-height: none; | ||
width: 300px; | ||
margin-left: 785px; | ||
} |