Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: samples/swarm/Views.dart

Issue 12254046: Reapply setTimeout change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/swarm/SwarmViews.dart ('k') | samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/Views.dart
diff --git a/samples/swarm/Views.dart b/samples/swarm/Views.dart
index c9e02faec7c4c24296fef257d4c715e536034929..ea9662b1db91959cba17a035a1b5b23c92fa8246 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);
}
« no previous file with comments | « samples/swarm/SwarmViews.dart ('k') | samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698