Skip to content

Commit

Permalink
Set canvas style to block, and inset to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff committed May 8, 2024
1 parent 3a08444 commit 1711827
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/FastImageSequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ export class FastImageSequence {
this.context = <CanvasRenderingContext2D>this.canvas.getContext('2d');
this.context.fillStyle = this.options.fillStyle;
this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);
this.canvas.style.inset = `0`;
this.canvas.style.width = `100%`;
this.canvas.style.height = `100%`;
this.canvas.style.margin = `0 !important`;
this.canvas.style.margin = `0`;
this.canvas.style.display = `block`;

this.container.appendChild(this.canvas);

Expand Down

0 comments on commit 1711827

Please sign in to comment.