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:
parent
4b09416ac2
commit
4c118d0afd
|
@ -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%;
|
||||
|
|
|
@ -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}">`
|
||||
|
|
Loading…
Reference in a new issue