Commit d73ea522 authored by limingzhe's avatar limingzhe

fix: 去掉 updateAlignment

parent 74d7fd0c
......@@ -52,11 +52,11 @@ cc.Class({
this.settopUI(this.MaxSize);
this.setBgScale();
this.setUiPositon();
var scene = cc.director.getScene();
var scene = this.node //cc.director.getScene();
var list = scene.getComponentsInChildren(cc.Widget)
for (var i in list) {
list[i].updateAlignment();
// list[i].updateAlignment();
}
}
}, 0);
......@@ -85,10 +85,10 @@ cc.Class({
this.settopUI(this.MaxSize);
this.setBgScale();
this.setUiPositon();
var scene = cc.director.getScene();
var scene = this.node;
var list = scene.getComponentsInChildren(cc.Widget)
for (var i in list) {
list[i].updateAlignment();
// list[i].updateAlignment();
}
},
......
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