Explorar el Código

Canvas2D: bug fixing designSize

Has to force and set the size as the designSize for positioning to work correctly.
nockawa hace 9 años
padre
commit
8dcd84b085
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/Canvas2d/babylon.canvas2d.ts

+ 1 - 0
src/Canvas2d/babylon.canvas2d.ts

@@ -1272,6 +1272,7 @@
                 } else {
                 } else {
                     scale = this._renderingSize.height / this._designSize.height;
                     scale = this._renderingSize.height / this._designSize.height;
                 }
                 }
+                this.size = this._designSize.clone();
                 this.scale = scale;
                 this.scale = scale;
             }
             }