Index: samples/swarm/Views.dart |
diff --git a/samples/swarm/Views.dart b/samples/swarm/Views.dart |
index 48329c022bb640e1140a415d9537132fd26a7309..adaceec1a9d0caa36f9444b7bd51e11501f4e4a6 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. |
- window.setTimeout(() { _positionSubview(view.node, index); }, 0); |
+ Timer.run(() { _positionSubview(view.node, index); }); |
} else { |
_positionSubview(view.node, index); |
} |