Fix the parameter names for computeMaxIntrinsicHeight and computeMinIntrinsicHeight (#9017)

These parameters are the width, not the height.
This commit is contained in:
Adam Barth 2017-03-26 16:04:24 -07:00 committed by GitHub
parent dccccb9b82
commit 5a101024de

View File

@ -1255,7 +1255,7 @@ abstract class RenderBox extends RenderObject {
///
/// See also examples in the definition of [computeMinIntrinsicWidth].
@protected
double computeMinIntrinsicHeight(double height) {
double computeMinIntrinsicHeight(double width) {
return 0.0;
}
@ -1332,7 +1332,7 @@ abstract class RenderBox extends RenderObject {
///
/// See also examples in the definition of [computeMinIntrinsicWidth].
@protected
double computeMaxIntrinsicHeight(double height) {
double computeMaxIntrinsicHeight(double width) {
return 0.0;
}