Commit 615756ce authored by liujiangnan's avatar liujiangnan

debug

parent 3f829fa3
......@@ -311,7 +311,6 @@ export default class NewClass extends cc.Component {
const itemClone = cc.instantiate(wordNode);
itemClone.parent = wordRow;
itemClone.active = true;
cc.find("word", itemClone).getComponent(cc.Label).string = word.text;
if (word.pic_url) {
itemClone.height = 220;
getSpriteFrimeByUrl(word.pic_url, (spriteFrame) => {
......@@ -322,8 +321,9 @@ export default class NewClass extends cc.Component {
picNode.scale = Math.min(sx, sy);
});
} else {
itemClone.height = 45;
cc.find("pic", itemClone).active = false;
itemClone.height = 40;
cc.find("word", itemClone).getComponent(cc.Label).string = word.text;
}
}
} else {
......
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