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

Unified Diff: sky/tests/raw/box_layout.dart

Issue 1189603003: Remove RenderSizedBox. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
Index: sky/tests/raw/box_layout.dart
diff --git a/sky/tests/raw/box_layout.dart b/sky/tests/raw/box_layout.dart
index 9ef58a95c494511ad86adca680b0ba80529eebef..c30fc41604c167a1cfb0be669a8cb69b4de37b3b 100644
--- a/sky/tests/raw/box_layout.dart
+++ b/sky/tests/raw/box_layout.dart
@@ -14,7 +14,7 @@ void main() {
initUnit();
test("padding", () {
- var size = new RenderSizedBox(desiredSize: new sky.Size(double.INFINITY, 100.0));
+ var size = new RenderConstrainedBox(additionalConstraints: new BoxConstraints().applyHeight(100.0));
var inner = new RenderDecoratedBox(decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)), child: size);
var padding = new RenderPadding(padding: new EdgeDims.all(50.0), child: inner);
var block = new RenderBlock(children: [padding]);

Powered by Google App Engine
This is Rietveld 408576698