setSize method
Implementation
void setSize(double width, double height, [bool updateStyle = false]) {
// if ( xr.isPresenting ) {
// print( 'THREE.WebGLRenderer: Can\'t change size while VR device is presenting.' );
// return;
// }
_width = width;
_height = height;
// print(" WebGLRenderer setSize ......... ");
// _canvas.width = Math.floor( width * _pixelRatio );
// _canvas.height = Math.floor( height * _pixelRatio );
// if ( updateStyle != false ) {
// _canvas.style.width = width + 'px';
// _canvas.style.height = height + 'px';
// }
setViewport(0, 0, width, height);
}