Commit f2564a41 authored by Hixie's avatar Hixie

Fix copypasta in RenderSizedOverflowBox.

parent 1703d065
...@@ -751,6 +751,8 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget { ...@@ -751,6 +751,8 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
debugPrint('a manner consistent with the constraints provided, and, in addition, that'); debugPrint('a manner consistent with the constraints provided, and, in addition, that');
debugPrint('the getMinIntrinsicWidth(), getMaxIntrinsicWidth(), etc, functions all'); debugPrint('the getMinIntrinsicWidth(), getMaxIntrinsicWidth(), etc, functions all');
debugPrint('return consistent values within the same constraints.'); debugPrint('return consistent values within the same constraints.');
debugPrint('If you are not writing your own RenderObject subclass, then this is not');
debugPrint('your fault. Contact support: https://github.com/flutter/flutter/issues/new');
} }
return true; return true;
}); });
......
...@@ -40,12 +40,12 @@ class RenderSizedOverflowBox extends RenderBox with RenderObjectWithChildMixin<R ...@@ -40,12 +40,12 @@ class RenderSizedOverflowBox extends RenderBox with RenderObjectWithChildMixin<R
double getMinIntrinsicHeight(BoxConstraints constraints) { double getMinIntrinsicHeight(BoxConstraints constraints) {
assert(constraints.isNormalized); assert(constraints.isNormalized);
return constraints.constrainWidth(_requestedSize.height); return constraints.constrainHeight(_requestedSize.height);
} }
double getMaxIntrinsicHeight(BoxConstraints constraints) { double getMaxIntrinsicHeight(BoxConstraints constraints) {
assert(constraints.isNormalized); assert(constraints.isNormalized);
return constraints.constrainWidth(_requestedSize.height); return constraints.constrainHeight(_requestedSize.height);
} }
double computeDistanceToActualBaseline(TextBaseline baseline) { double computeDistanceToActualBaseline(TextBaseline baseline) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment