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

Unified Diff: client/touch/Scrollbar.dart

Issue 8363040: Implement measurement using futures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to all comments Created 9 years, 2 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
Index: client/touch/Scrollbar.dart
diff --git a/client/touch/Scrollbar.dart b/client/touch/Scrollbar.dart
index ea57218e44513de14fcea69e7c9d4a22b999ddca..287c746e29dec291f58773c1fbd73753569743bc 100644
--- a/client/touch/Scrollbar.dart
+++ b/client/touch/Scrollbar.dart
@@ -246,9 +246,10 @@ class Scrollbar implements ScrollListener {
// No need to refresh if not visible.
return;
}
- _scroller._resize();
- updateScrollbars(_scroller.getHorizontalOffset(),
- _scroller.getVerticalOffset());
+ _scroller._resize(() {
+ updateScrollbars(_scroller.getHorizontalOffset(),
+ _scroller.getVerticalOffset());
+ });
}
void updateScrollbars(num scrollX, num scrollY) {

Powered by Google App Engine
This is Rietveld 408576698