Skip to content

Commit 15bacab

Browse files
committed
fix labels positions if space around container
1 parent fd51893 commit 15bacab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scatter_gl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export class ScatterGL {
8989

9090
constructor(containerElement: HTMLElement, params: ScatterGLParams = {}) {
9191
this.containerElement = containerElement;
92+
this.containerElement.style.position = 'relative';
9293
this.styles = makeStyles(params.styles);
9394

9495
// Instantiate params if they exist

0 commit comments

Comments
 (0)