Fix the sector demo.

Turns out it's ok to not detach all the RenderObjects from the widget
tree from each other, since they're not reused... but the
WidgetToRenderBoxAdapter's renderBox _is_ reused, so we better detach
that one.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1191053002.
This commit is contained in:
Hixie 2015-06-17 15:37:39 -07:00
parent b1210c6397
commit a4196226d2

View File

@ -429,4 +429,9 @@ class WidgetToRenderBoxAdapter extends RenderObjectWrapper {
// definition, it is the transition out of the Widget world.
}
void remove() {
parent.detachChildRoot(this);
super.remove();
}
}