Commit 4aafa7da authored by Ian Hickson's avatar Ian Hickson

Merge pull request #1488 from Hixie/overflow

Fix copypasta in RenderSizedOverflowBox.
parents 7defbc1c f2564a41
......@@ -751,6 +751,8 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
debugPrint('a manner consistent with the constraints provided, and, in addition, that');
debugPrint('the getMinIntrinsicWidth(), getMaxIntrinsicWidth(), etc, functions all');
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;
});
......
......@@ -40,12 +40,12 @@ class RenderSizedOverflowBox extends RenderBox with RenderObjectWithChildMixin<R
double getMinIntrinsicHeight(BoxConstraints constraints) {
assert(constraints.isNormalized);
return constraints.constrainWidth(_requestedSize.height);
return constraints.constrainHeight(_requestedSize.height);
}
double getMaxIntrinsicHeight(BoxConstraints constraints) {
assert(constraints.isNormalized);
return constraints.constrainWidth(_requestedSize.height);
return constraints.constrainHeight(_requestedSize.height);
}
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