Index: sky/examples/rendering/borders.dart |
diff --git a/sky/examples/rendering/borders.dart b/sky/examples/rendering/borders.dart |
index 7bc72f3c4a73ba3ce180a02f4477abf6487c5aa7..103100223d91000c7818b9de6e7c1f580fb4801f 100644 |
--- a/sky/examples/rendering/borders.dart |
+++ b/sky/examples/rendering/borders.dart |
@@ -16,8 +16,8 @@ void main() { |
var root = new RenderBlock(children: [ |
new RenderPadding( |
padding: new EdgeDims.all(10.0), |
- child: new RenderSizedBox( |
- desiredSize: new sky.Size.fromHeight(100.0), |
+ child: new RenderConstrainedBox( |
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0), |
child: new RenderDecoratedBox( |
decoration: new BoxDecoration( |
backgroundColor: new sky.Color(0xFFFFFF00) |
@@ -27,8 +27,8 @@ void main() { |
), |
new RenderPadding( |
padding: new EdgeDims.all(10.0), |
- child: new RenderSizedBox( |
- desiredSize: new sky.Size.fromHeight(100.0), |
+ child: new RenderConstrainedBox( |
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0), |
child: new RenderDecoratedBox( |
decoration: new BoxDecoration( |
border: new Border( |
@@ -44,8 +44,8 @@ void main() { |
), |
new RenderPadding( |
padding: new EdgeDims.all(10.0), |
- child: new RenderSizedBox( |
- desiredSize: new sky.Size.fromHeight(100.0), |
+ child: new RenderConstrainedBox( |
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0), |
child: new RenderDecoratedBox( |
decoration: new BoxDecoration( |
backgroundColor: new sky.Color(0xFFFFFF00) |
@@ -55,8 +55,8 @@ void main() { |
), |
new RenderPadding( |
padding: new EdgeDims.all(10.0), |
- child: new RenderSizedBox( |
- desiredSize: new sky.Size.fromHeight(100.0), |
+ child: new RenderConstrainedBox( |
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0), |
child: new RenderDecoratedBox( |
decoration: new BoxDecoration( |
backgroundColor: new sky.Color(0xFFFFFF00) |
@@ -66,8 +66,8 @@ void main() { |
), |
new RenderPadding( |
padding: new EdgeDims.all(10.0), |
- child: new RenderSizedBox( |
- desiredSize: new sky.Size.fromHeight(100.0), |
+ child: new RenderConstrainedBox( |
+ additionalConstraints: new BoxConstraints.tightFor(height: 100.0), |
child: new RenderDecoratedBox( |
decoration: new BoxDecoration( |
backgroundColor: new sky.Color(0xFFFFFF00) |