From 15bacabd2653d434b1748cf6ad87199496056583 Mon Sep 17 00:00:00 2001 From: codev0 Date: Wed, 4 Oct 2023 13:15:23 +0600 Subject: [PATCH] fix labels positions if space around container --- src/scatter_gl.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scatter_gl.ts b/src/scatter_gl.ts index e7aa177..62d70e0 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