Skip to content

Commit e0a2ebc

Browse files
authored
Do not update style.width and style.height on renderer resize to not override styles applied externally (fix #3160) (#3184)
1 parent fdd96d2 commit e0a2ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/scene/a-scene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ module.exports.AScene = registerElement('a-scene', {
468468
camera.aspect = size.width / size.height;
469469
camera.updateProjectionMatrix();
470470
// Notify renderer of size change.
471-
this.renderer.setSize(size.width, size.height);
471+
this.renderer.setSize(size.width, size.height, false);
472472
},
473473
writable: window.debug
474474
},

0 commit comments

Comments
 (0)