Skip to content

Commit

Permalink
fix react-select clipping problem in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Aug 31, 2017
1 parent 2ba0a00 commit 10fec13
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/core_plugins/input_control_vis/public/vis.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@
padding: 15px 0;
}
}

visualization.input_control_vis {
overflow: visible;

.vis-container {
overflow: visible;
}
}

.Select-menu-outer {
z-index: 99999 !important; // make sure menu is on top of everything else (leaflet)
}

8 changes: 7 additions & 1 deletion src/core_plugins/kibana/public/dashboard/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ dashboard-grid {
i.remove {
cursor: pointer;
}

.gs-w {
z-index: auto !important;
}
}

.panel {
Expand All @@ -134,6 +138,7 @@ dashboard-grid {
/**
* 1. Fix Firefox bug where a value of overflow: hidden will prevent scrolling in a panel where the spy panel does
* not have enough room.
* 2. react-select used in input control vis needs `visible` overflow to avoid clipping selection list
*/
dashboard-panel {
flex: 1;
Expand All @@ -144,7 +149,8 @@ dashboard-panel {
background: @dashboard-panel-bg;
color: @dashboard-panel-color;
padding: 0;
overflow: auto; /* 1 */
overflow: visible; /* 1, 2 */

position: relative;

.panel {
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/visualize/visualize.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/>
<visualization
ng-if="editorMode==false"
class={{vis.type.name}}
vis="vis"
vis-data="visData"
ui-state="uiState"
Expand Down

0 comments on commit 10fec13

Please sign in to comment.