From 17118278321272666a5ee1b30223aa171617c08d Mon Sep 17 00:00:00 2001 From: Reinder Nijhoff Date: Wed, 8 May 2024 10:40:51 +0200 Subject: [PATCH] Set canvas style to block, and inset to 0 --- src/lib/FastImageSequence.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/FastImageSequence.ts b/src/lib/FastImageSequence.ts index f9d385c..bc259f9 100644 --- a/src/lib/FastImageSequence.ts +++ b/src/lib/FastImageSequence.ts @@ -115,9 +115,11 @@ export class FastImageSequence { this.context = 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);