Skip to content

Commit

Permalink
fix labels positions if space around container
Browse files Browse the repository at this point in the history
  • Loading branch information
codev0 committed May 22, 2024
1 parent fd51893 commit 15bacab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scatter_gl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15bacab

Please sign in to comment.