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

Unified Diff: samples/swarm/Views.dart

Issue 12087004: Changing window.requestLayoutFrame into a microtask API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « no previous file | samples/swarm/swarm_ui_lib/layout/GridLayout.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 f282f9e2c3b80c149b63b67d51385aac9d585ecb..4f50ff47b45db858d9b65959095a296805ad62c2 100644
--- a/samples/swarm/Views.dart
+++ b/samples/swarm/Views.dart
@@ -289,7 +289,7 @@ class GenericListView<D> extends View {
void onResize() {
int lastViewLength = _viewLength;
- window.requestLayoutFrame(() {
+ window.setImmediate(() {
_viewLength = _vertical ? node.offsetHeight : node.offsetWidth;
if (_viewLength != lastViewLength) {
if (_scrollbar != null) {
« no previous file with comments | « no previous file | samples/swarm/swarm_ui_lib/layout/GridLayout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698