From 0bbe79b42b24284f7b7f68138edfe4ca007c1a62 Mon Sep 17 00:00:00 2001 From: Eoghan Murray Date: Sat, 23 May 2020 08:24:19 +0100 Subject: [PATCH] This dimension is in px but is unitless according to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe (#214) --- src/replay/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/replay/index.ts b/src/replay/index.ts index aa780700..df2ee8fe 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -226,8 +226,8 @@ export class Replayer { } private handleResize(dimension: viewportResizeDimention) { - this.iframe.width = `${dimension.width}px`; - this.iframe.height = `${dimension.height}px`; + this.iframe.setAttribute('width', dimension.width); + this.iframe.setAttribute('height', dimension.height); } // TODO: add speed to mouse move timestamp calculation