Remove inline styles from canvas

This commit is contained in:
James Harrison 2020-11-23 16:09:37 +00:00
parent a424bbb80b
commit 0a8314ee24
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ class SkinViewer {
setSize(width: number, height: number): void {
this.camera.aspect = width / height;
this.camera.updateProjectionMatrix();
this.renderer.setSize(width, height);
//False at the end to disable updateStyle to stop the canvas having inline styles added
this.renderer.setSize(width, height, false);
}
dispose(): void {