Commit f2752a7f authored by yu's avatar yu

1

parent 921e3d82
...@@ -3844,8 +3844,8 @@ ...@@ -3844,8 +3844,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 120, "width": 190,
"height": 150 "height": 240
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3863,8 +3863,8 @@ ...@@ -3863,8 +3863,8 @@
0, 0,
0, 0,
1, 1,
2, 1,
2, 1,
1 1
] ]
}, },
...@@ -3898,8 +3898,8 @@ ...@@ -3898,8 +3898,8 @@
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_string": "", "_string": "",
"_N$string": "", "_N$string": "",
"_fontSize": 100, "_fontSize": 200,
"_lineHeight": 100, "_lineHeight": 200,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "04c2b808-1c8a-499b-9152-128a1abe340a" "__uuid__": "04c2b808-1c8a-499b-9152-128a1abe340a"
...@@ -4170,11 +4170,11 @@ ...@@ -4170,11 +4170,11 @@
"height": 40 "height": 40
}, },
"_N$startAxis": 0, "_N$startAxis": 0,
"_N$paddingLeft": 25, "_N$paddingLeft": 50,
"_N$paddingRight": 25, "_N$paddingRight": 50,
"_N$paddingTop": 0, "_N$paddingTop": 0,
"_N$paddingBottom": 0, "_N$paddingBottom": 0,
"_N$spacingX": 25, "_N$spacingX": -10,
"_N$spacingY": 0, "_N$spacingY": 0,
"_N$verticalDirection": 1, "_N$verticalDirection": 1,
"_N$horizontalDirection": 0, "_N$horizontalDirection": 0,
......
...@@ -738,13 +738,22 @@ cc.Class({ ...@@ -738,13 +738,22 @@ cc.Class({
}) })
layout_card.getComponent(cc.Layout).updateLayout(); layout_card.getComponent(cc.Layout).updateLayout();
setTimeout(() => { setTimeout(() => {
layout_card.getComponent(cc.Layout).updateLayout();
layout_normal.getComponent(cc.Layout).updateLayout();
let size = this.node.width; let size = this.node.width;
let lWidth = layout_card.width; let lWidth = layout_card.width;
if (lWidth > size - 300) { if (lWidth > size - 300) {
layout_card.scale = size / lWidth - 0.05; layout_card.scale = size / lWidth - 0.05;
} else {
layout_card.scale = 1;
} }
layout_card.opacity = 255; layout_card.opacity = 255;
// card_bg2.width = layout_ca let nWidth = layout_normal.width;
if (nWidth > size - 300) {
layout_normal.scale = size / nWidth - 0.05;
} else {
layout_normal.scale = 1;
}
}, 60); }, 60);
}, },
......
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