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

Unified Diff: samples/ui_lib/view/view.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/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 {

Powered by Google App Engine
This is Rietveld 408576698