diff --git a/src/scatter_gl.ts b/src/scatter_gl.ts index 4d1589c..0b7d712 100644 --- a/src/scatter_gl.ts +++ b/src/scatter_gl.ts @@ -89,6 +89,7 @@ export class ScatterGL { constructor(containerElement: HTMLElement, params: ScatterGLParams = {}) { this.containerElement = containerElement; + this.containerElement.style.position = 'relative'; this.styles = makeStyles(params.styles); // Instantiate params if they exist