Commit 772c013e authored by Chen Jiping's avatar Chen Jiping

fix:修复自定义上传背景显示问题

parent 13bd4541
......@@ -271,9 +271,9 @@ cc.Class({
this.getSpriteFrimeByUrl(this.data.bg.picUrl, (sf) => {
spr.spriteFrame = sf;
//bgNode.scale = Math.max(this._frameSize.width / bgNode.width, this._frameSize.height / bgNode.height);
bgNode.scaleX = this._frameSize.width / bgNode.width;
bgNode.scaleY = this._frameSize.height / bgNode.height;
bgNode.scaleX = this._frameSize.width / bgNode.width * this._cocosScale;
bgNode.scaleY = this._frameSize.height / bgNode.height * this._cocosScale;
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment