From a4196226d20332e1dcd8d57766ccdc337e7a1136 Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 17 Jun 2015 15:37:39 -0700 Subject: [PATCH] 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. --- sdk/lib/widgets/basic.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/lib/widgets/basic.dart b/sdk/lib/widgets/basic.dart index ed24024783b..c330ea17042 100644 --- a/sdk/lib/widgets/basic.dart +++ b/sdk/lib/widgets/basic.dart @@ -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(); + } + }