[Vega] fix redundant scrollbars in default vega config (#97210) (#100988)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2021-05-31 08:18:30 -04:00 committed by GitHub
parent 4b09416ac2
commit 4c118d0afd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -18,7 +18,7 @@
z-index: 0;
flex: 1 1 100%;
display: block;
//display determined by js
max-width: 100%;
max-height: 100%;
width: 100%;

View file

@ -83,9 +83,10 @@ export class VegaBaseView {
return;
}
const containerDisplay = this._parser.useResize ? 'flex' : 'block';
this._$container = $('<div class="vgaVis__view">')
// Force a height here because css is not loaded in mocha test
.css('height', '100%')
.css({ height: '100%', display: containerDisplay })
.appendTo(this._$parentEl);
this._$controls = $(
`<div class="vgaVis__controls vgaVis__controls--${this._parser.controlsDir}">`