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. |