Remove inline styles from canvas
This commit is contained in:
parent
a424bbb80b
commit
0a8314ee24
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue