- Creator 版本:1.7.0 rc2
- 目标平台:(Web / iOS / Android / 模拟器)模拟器
有旋转屏幕的需求,我用setFrameSize把宽高对调一下设置,进入下一个scene,然后在onload中打印
cc.log(“table=====>”, canvas.designResolution.height, canvas.designResolution.width, canvas.fitWidth);
cc.log(“table=====>”, this.node.getContentSize().height, this.node.scale);
canvas.designResolution.height和 this.node.getContentSize().height不一致