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

Unified Diff: sky/sdk/lib/framework/components2/scaffold.dart

Issue 1162033002: Introduce RenderProxyBox and RenderSizedBox (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now with test 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 | « sky/examples/spinning_arabic.dart ('k') | 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/sdk/lib/framework/components2/scaffold.dart
diff --git a/sky/sdk/lib/framework/components2/scaffold.dart b/sky/sdk/lib/framework/components2/scaffold.dart
index 8746c632845c56f2bfff0826f969c86afb9ab253..114ea79e9588e6af5514e196b8444abfb3beaf1a 100644
--- a/sky/sdk/lib/framework/components2/scaffold.dart
+++ b/sky/sdk/lib/framework/components2/scaffold.dart
@@ -96,20 +96,20 @@ class RenderScaffold extends RenderDecoratedBox {
double bodyHeight = size.height;
double bodyPosition = 0.0;
if (toolbar != null) {
- toolbar.layout(new BoxConstraints.tight(width: size.width, height: kToolbarHeight));
+ toolbar.layout(new BoxConstraints.tight(new sky.Size(size.width, kToolbarHeight)));
assert(toolbar.parentData is BoxParentData);
toolbar.parentData.position = new sky.Point(0.0, 0.0);
bodyPosition = kToolbarHeight;
bodyHeight -= kToolbarHeight;
}
if (statusbar != null) {
- statusbar.layout(new BoxConstraints.tight(width: size.width, height: kStatusbarHeight));
+ statusbar.layout(new BoxConstraints.tight(new sky.Size(size.width, kStatusbarHeight)));
assert(statusbar.parentData is BoxParentData);
statusbar.parentData.position = new sky.Point(0.0, size.height - kStatusbarHeight);
bodyHeight -= kStatusbarHeight;
}
if (body != null) {
- body.layout(new BoxConstraints.tight(width: size.width, height: bodyHeight));
+ body.layout(new BoxConstraints.tight(new sky.Size(size.width, bodyHeight)));
assert(body.parentData is BoxParentData);
body.parentData.position = new sky.Point(0.0, bodyPosition);
}
« no previous file with comments | « sky/examples/spinning_arabic.dart ('k') | sky/sdk/lib/framework/layout2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698