Commit 622b99fb authored by Chen Jiping's avatar Chen Jiping

fix:修复图片显示比例异常问题

parent c614e9d6
...@@ -318,7 +318,7 @@ cc.Class({ ...@@ -318,7 +318,7 @@ cc.Class({
let pic = cc.find("Canvas/content/bg_green/pic"); let pic = cc.find("Canvas/content/bg_green/pic");
const picNode = sprNode; const picNode = sprNode;
picNode.scale = pic.width / picNode.width; setSprNodeMaxLen(picNode, pic.width, pic.height);
picNode.x = 0; picNode.x = 0;
picNode.y = 0; picNode.y = 0;
pic.addChild(picNode); pic.addChild(picNode);
......
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