Index: samples/clock/clock.dart |
diff --git a/samples/clock/clock.dart b/samples/clock/clock.dart |
index c8fc17c021cd3c7e62524623fb9c1c0e757ec9ad..36ec1701c0af6f753a35ef64c97c3b53b7908008 100644 |
--- a/samples/clock/clock.dart |
+++ b/samples/clock/clock.dart |
@@ -48,8 +48,8 @@ class CountDownClock { |
balls = new Balls() { |
var parent = query("#canvas-content"); |
Jacob
2012/11/02 05:00:29
remove requestLayoutFrame as well as async getComp
blois
2012/11/02 20:04:46
Not sure which getComputedStyles you're referring
|
- parent.rect.then((ElementRect r) { |
- createNumbers(parent, r.client.width, r.client.height); |
+ window.requestLayoutFrame(() { |
+ createNumbers(parent, parent.clientWidth, parent.clientHeight); |
updateTime(new Date.now()); |