Index: samples/ui_lib/view/view.dart |
diff --git a/samples/ui_lib/view/view.dart b/samples/ui_lib/view/view.dart |
index 52f0765251280d3e1003cbd07a7fa663a02b43c3..09acf12a703353a23074fdf785f9b61371673453 100644 |
--- a/samples/ui_lib/view/view.dart |
+++ b/samples/ui_lib/view/view.dart |
@@ -346,9 +346,9 @@ class View implements Positionable { |
// a good tradeoff? |
if (ViewLayout.hasCustomLayout(this)) { |
Completer sizeCompleter = new Completer<Size>(); |
- _node.rect.then((ElementRect rect) { |
+ window.requestLayoutFrame(() { |
sizeCompleter.complete( |
- new Size(rect.client.width, rect.client.height)); |
+ new Size(_node.clientWidth, _node.clientHeight)); |
}); |
layout.measureLayout(sizeCompleter.future, changed); |
} else { |