Commit 163efeaf authored by Tt's avatar Tt

1

parent 86edd00c
......@@ -707,6 +707,7 @@ cc.Class({
layout_card.removeAllChildren();
let r = [239, 0, 135];
let l = [2, 171, 241];
layout_card.getComponent(cc.Layout).spacingX = 15;
content.forEach((item) => {
let cCard = cc.instantiate(card);
layout_card.addChild(cCard);
......@@ -759,6 +760,11 @@ cc.Class({
item.getComponent(cc.Sprite).enabled = false;
// cc.tween(item).to(0.5, { opacity: 0 }).start();
})
layout_card.getComponent(cc.Layout).spacingX = -50;
layout_card.getComponent(cc.Layout).updateLayout();
setTimeout(() => {
card_bg2.width = layout_card.width;
}, 30);
},
setCardColor(progress) {
......
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