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

Unified Diff: samples/calculator/tape.dart

Issue 11367040: Removing Element.rect. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: samples/calculator/tape.dart
diff --git a/samples/calculator/tape.dart b/samples/calculator/tape.dart
index b2ab85a2c3035ce619290375ddc48d00ce33533a..2d28bcb551d7018539846962c3c1db2bf901d583 100644
--- a/samples/calculator/tape.dart
+++ b/samples/calculator/tape.dart
@@ -187,7 +187,7 @@ class Tape {
}
void scrollToTapeBottom() {
- tapeUI.tape.rect.then((ElementRect rect) {
+ window.requestLayoutFrame(() {
// theTape.rect.scroll.top = rect.scroll.height;
// TODO(terry): Would like to set scrollTop of tape doesn't seem to work
// so I scroll by max lines.

Powered by Google App Engine
This is Rietveld 408576698