Skip to content

Commit

Permalink
[Vega] Fix vega styling issues (elastic#143168)
Browse files Browse the repository at this point in the history
* Revert "[Vega] Fix vega controls layout (elastic#130954)"

This reverts commit 8e09cdc.

* Revert "Revert "[Vega] Fix vega controls layout (elastic#130954)""

This reverts commit cd753c3.

* fix vega problems

* always make the vega view scroll

* restrict maximum height
  • Loading branch information
flash1293 authored and e40pud committed Oct 24, 2022
1 parent 35e5631 commit e5a9589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/plugins/vis_types/vega/public/components/vega_vis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@
display: flex;
flex: 1 1 100%;
position: relative;
max-width: 100%;
// flex-direction determined by js
}

.vgaVis--autoresize {
@include euiScrollBar;
max-width: 100%;
max-height: 100%;
overflow: auto;
.vgaVis__view {
overflow: hidden;
}
}

.vgaVis__view {
@include euiScrollBar;
overflow: auto;
z-index: 0;
flex: 1 1 100%;

Expand Down
1 change: 1 addition & 0 deletions src/plugins/visualizations/public/vis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
position: relative;
padding: $euiSizeS;
flex: 1 1 100%;
flex-direction: column;
}

.visChart {
Expand Down

0 comments on commit e5a9589

Please sign in to comment.