setLayoutParameter并没有马上改变控件位置,导致
getPosition 和 convertToWorldSpace 等无效
这个要怎么解决?
sortAllChildren: function () {
ccui.Widget.prototype.sortAllChildren.call(this);
this._doLayout();
},
这样用?
setLayoutParameter(parameter);
sortAllChildren();
getPosition 和 convertToWorldSpace 马上有效