浏览代码

Canvas2D: bug fixing designSize

Has to force and set the size as the designSize for positioning to work correctly.
nockawa 9 年之前
父节点
当前提交
8dcd84b085
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Canvas2d/babylon.canvas2d.ts

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

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