google-ar / codelab-webxr

Building an augmented reality application with the WebXR Device API
https://codelabs.developers.google.com/codelabs/ar-with-webxr/
Apache License 2.0
172 stars 86 forks source link

Do not update styles when setting renderer size #3

Open jsantell opened 6 years ago

jsantell commented 6 years ago

We should pass in a third argument for setSize as false so we explicitly do not attempt to update the canvas styling: this.renderer.setSize(viewport.width, viewport.height, false);