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 Oct 4, 2023
1 parent 759d3a0 commit cf47b89
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 cf47b89

Please sign in to comment.