Chromium Code Reviews| Index: sky/examples/lib/solid_color_box.dart |
| diff --git a/sky/examples/lib/solid_color_box.dart b/sky/examples/lib/solid_color_box.dart |
| index 4608f4b6b334d766e8f026c92fa315e946ca7dc0..f39f8f54d78e9d9ee904e15d81bb827bb8695fa6 100644 |
| --- a/sky/examples/lib/solid_color_box.dart |
| +++ b/sky/examples/lib/solid_color_box.dart |
| @@ -13,8 +13,20 @@ class RenderSolidColorBox extends RenderDecoratedBox { |
| : backgroundColor = backgroundColor, |
| super(decoration: new BoxDecoration(backgroundColor: backgroundColor)); |
| - Size getIntrinsicDimensions(BoxConstraints constraints) { |
| - return constraints.constrain(desiredSize); |
| + double getMinIntrinsicWidth(BoxConstraints constraints) { |
|
Hixie
2015/06/08 21:35:32
this seems wrong.
|
| + return constraints.constrain(desiredSize.width); |
| + } |
| + |
| + double getMaxIntrinsicWidth(BoxConstraints constraints) { |
| + return constraints.constrain(desiredSize.width); |
| + } |
| + |
| + double getMinIntrinsicHeight(BoxConstraints constraints) { |
| + return constraints.constrain(desiredSize.height); |
| + } |
| + |
| + double getMaxIntrinsicHeight(BoxConstraints constraints) { |
| + return constraints.constrain(desiredSize.height); |
| } |
| void performLayout() { |