Index: sky/sdk/lib/framework/fn2.dart |
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart |
index 962c9efd6ac899427f752314e84b801690b8c110..d03cdf9c2e6e444b1d348a79582a0925a9a2a315 100644 |
--- a/sky/sdk/lib/framework/fn2.dart |
+++ b/sky/sdk/lib/framework/fn2.dart |
@@ -950,10 +950,8 @@ class RenderSolidColor extends RenderDecoratedBox { |
: backgroundColor = backgroundColor, |
super(new BoxDecoration(backgroundColor: backgroundColor)); |
- BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) { |
- return new BoxDimensions.withConstraints(constraints, |
- width: desiredSize.width, |
- height: desiredSize.height); |
+ sky.Size getIntrinsicDimensions(BoxConstraints constraints) { |
+ return constraints.constrain(desiredSize); |
} |
void performLayout() { |