mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix copypasta in RenderSizedOverflowBox.
This commit is contained in:
parent
1703d065f6
commit
f2564a41a1
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user