Layout的resize mode为CONTAINER时,container的大小会随着children大小的变化而变化。
可以监听children的sizechanged等事件,但是如何知道child被删除或者增加了新的child呢?
目前你可以监听 node 上的 ‘child-removed’,‘child-added’,还有 ‘child-reorder’ 事件,不过这三个事件不保证未来的版本中不会去掉。
Layout的resize mode为CONTAINER时,container的大小会随着children大小的变化而变化。
可以监听children的sizechanged等事件,但是如何知道child被删除或者增加了新的child呢?
目前你可以监听 node 上的 ‘child-removed’,‘child-added’,还有 ‘child-reorder’ 事件,不过这三个事件不保证未来的版本中不会去掉。