| Index: samples/clock/numbers.dart
|
| diff --git a/samples/clock/numbers.dart b/samples/clock/numbers.dart
|
| index 19132478d3de596b4a9d08ce5071d5c17f3cc5fb..dda328f5a420222bffaed43f2ca3fa1b0f8eea75 100644
|
| --- a/samples/clock/numbers.dart
|
| +++ b/samples/clock/numbers.dart
|
| @@ -43,9 +43,10 @@ class ClockNumber {
|
|
|
| if (pixels != null) {
|
| if ((pixels[y][x] != 0) && (px[y][x] == 0)) {
|
| - img.rect.then((ElementRect r) {
|
| - double absx = r.bounding.left;
|
| - double absy = r.bounding.top;
|
| + window.requestLayoutFrame(() {
|
| + var r = img.getBoundingClientRect();
|
| + double absx = r.left;
|
| + double absy = r.top;
|
|
|
| app.balls.add(absx, absy, ballColor);
|
| });
|
|
|