Commit 4c6ab1d1 authored by liujiangnan's avatar liujiangnan

feat: 修改报错

parent 91f28211
...@@ -501,7 +501,7 @@ ...@@ -501,7 +501,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 1280,
"height": 220.5 "height": 441
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -552,7 +552,7 @@ ...@@ -552,7 +552,7 @@
"__id__": 13 "__id__": 13
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 15
...@@ -909,7 +909,7 @@ ...@@ -909,7 +909,7 @@
"_layoutSize": { "_layoutSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 1280, "width": 1280,
"height": 220.5 "height": 441
}, },
"_resize": 1, "_resize": 1,
"_N$layoutType": 3, "_N$layoutType": 3,
......
...@@ -98,6 +98,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -98,6 +98,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
item.parent = this.node; item.parent = this.node;
contentNode.removeAllChildren(); contentNode.removeAllChildren();
item.parent = contentNode; item.parent = contentNode;
item.active = false;
// 绘制 // 绘制
for (let i = 0; i < this.rows.length; i++) { for (let i = 0; i < this.rows.length; i++) {
......
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