Index: samples/swarm/Views.dart |
diff --git a/samples/swarm/Views.dart b/samples/swarm/Views.dart |
index ea9662b1db91959cba17a035a1b5b23c92fa8246..c9e02faec7c4c24296fef257d4c715e536034929 100644 |
--- a/samples/swarm/Views.dart |
+++ b/samples/swarm/Views.dart |
@@ -531,7 +531,7 @@ class GenericListView<D> extends View { |
FxUtil.setTranslate(view.node, currentPosition.x, currentPosition.y, 0); |
// The view's position is unchanged except now re-parented to |
// the list view. |
- Timer.run(() { _positionSubview(view.node, index); }); |
+ window.setTimeout(() { _positionSubview(view.node, index); }, 0); |
} else { |
_positionSubview(view.node, index); |
} |