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

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: Remove duplicated imports from html.dart 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
« no previous file with comments | « client/touch/ScrollWatcher.dart ('k') | client/touch/Scroller.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/touch/Scrollbar.dart
diff --git a/client/touch/Scrollbar.dart b/client/touch/Scrollbar.dart
index 893b957828eb70628d68d1c26f57f1ccf239a319..15f1d89683f8b24fbb9d7505e2496f1bfa5ce193 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) {
« no previous file with comments | « client/touch/ScrollWatcher.dart ('k') | client/touch/Scroller.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698