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

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

Issue 1150253005: Replace BoxDimensions with sky.Size (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/examples/raw/sector-layout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/render_paragraph.dart
diff --git a/sky/examples/raw/render_paragraph.dart b/sky/examples/raw/render_paragraph.dart
index 32d6eebc4d017620dcd560f4b2c90acea76e290e..f2e444d4a8043bf64d1171b8f1319161b23fe119 100644
--- a/sky/examples/raw/render_paragraph.dart
+++ b/sky/examples/raw/render_paragraph.dart
@@ -16,10 +16,8 @@ class RenderSolidColor extends RenderDecoratedBox {
: backgroundColor = backgroundColor,
super(new BoxDecoration(backgroundColor: backgroundColor));
- BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) {
- return new BoxDimensions.withConstraints(constraints,
- height: desiredHeight,
- width: desiredWidth);
+ Size getIntrinsicDimensions(BoxConstraints constraints) {
+ return constraints.constrain(new Size(desiredWidth, desiredHeight));
}
void performLayout() {
« no previous file with comments | « no previous file | sky/examples/raw/sector-layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698