This dimension is in px but is unitless according to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe (#214)

This commit is contained in:
Eoghan Murray
2020-05-23 08:24:19 +01:00
committed by GitHub
parent 45a7f89f2b
commit 0bbe79b42b

View File

@@ -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