| 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 9c650ce39671740aca14981eaf22de68f5bfb9ee..bd5426a6eeba9348ac7094ca62ef1a31b1c27cae 100644
|
| --- a/sky/examples/lib/solid_color_box.dart
|
| +++ b/sky/examples/lib/solid_color_box.dart
|
| @@ -14,19 +14,27 @@ class RenderSolidColorBox extends RenderDecoratedBox {
|
| super(decoration: new BoxDecoration(backgroundColor: backgroundColor));
|
|
|
| double getMinIntrinsicWidth(BoxConstraints constraints) {
|
| - return constraints.constrainWidth(desiredSize.width);
|
| + return constraints.constrainHeight(
|
| + this.desiredSize == Size.infinite ? 0.0 : desiredSize.width
|
| + );
|
| }
|
|
|
| double getMaxIntrinsicWidth(BoxConstraints constraints) {
|
| - return constraints.constrainWidth(desiredSize.width);
|
| + return constraints.constrainWidth(
|
| + this.desiredSize == Size.infinite ? 0.0 : desiredSize.width
|
| + );
|
| }
|
|
|
| double getMinIntrinsicHeight(BoxConstraints constraints) {
|
| - return constraints.constrainHeight(desiredSize.height);
|
| + return constraints.constrainHeight(
|
| + this.desiredSize == Size.infinite ? 0.0 : desiredSize.height
|
| + );
|
| }
|
|
|
| double getMaxIntrinsicHeight(BoxConstraints constraints) {
|
| - return constraints.constrainHeight(desiredSize.height);
|
| + return constraints.constrainHeight(
|
| + this.desiredSize == Size.infinite ? 0.0 : desiredSize.height
|
| + );
|
| }
|
|
|
| void performLayout() {
|
|
|