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

Unified Diff: sky/examples/raw/simple_render_tree.dart

Issue 1152603002: Address Ian's comments on layout2.dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « no previous file | sky/sdk/lib/framework/layout2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/simple_render_tree.dart
diff --git a/sky/examples/raw/simple_render_tree.dart b/sky/examples/raw/simple_render_tree.dart
index 205043523b38ea524a254e9e60ed5f65700c7305..555c8757ef30bb8690999ca7280a066a216f900b 100644
--- a/sky/examples/raw/simple_render_tree.dart
+++ b/sky/examples/raw/simple_render_tree.dart
@@ -18,8 +18,8 @@ class RenderSolidColor extends RenderDecoratedBox {
}
void layout(BoxConstraints constraints, { RenderNode relayoutSubtreeRoot }) {
- setWidth(constraints, constraints.maxWidth);
- setHeight(constraints, 200.0);
+ width = constraints.constrainWidth(constraints.maxWidth);
+ height = constraints.constrainHeight(200.0);
layoutDone();
}
« no previous file with comments | « no previous file | sky/sdk/lib/framework/layout2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698