Commit df627a42 authored by Chen Jiping's avatar Chen Jiping

fix:背景图片拉伸

parent dee09333
...@@ -294,8 +294,8 @@ cc.Class({ ...@@ -294,8 +294,8 @@ cc.Class({
const titleBgNode = this.getSprNode('bg'); const titleBgNode = this.getSprNode('bg');
titleBgNode.parent = bgNode; titleBgNode.parent = bgNode;
bgNode.scaleX = this._frameSize.width / bgNode.width; bgNode.scaleX = this._frameSize.width / bgNode.width * this._cocosScale;
bgNode.scaleY = this._frameSize.height / bgNode.height; 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