提交 f76dd382 编写于 作者: H Hixie

[Effen] We need to update the layout manager in _syncNode() also,

otherwise when you switch from one Container instance to another, you
end up with the the layout being done by the wrong instance.

R=ojan@chromium.org

Review URL: https://codereview.chromium.org/1086983004
上级 987ba83d
......@@ -607,8 +607,12 @@ abstract class LayoutContainer extends Container {
return result;
}
// If we ever reuse sky nodes for different classes, then we should
// call _root.setLayoutManager(null) during _remove() here.
void _syncNode(SkyNodeWrapper old) {
super._syncNode(old);
_root.setLayoutManager(() => layout(_root));
_root.setNeedsLayout();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册