File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2974,7 +2974,11 @@ class _ConstraintRenderBox extends RenderBox
2974
2974
minWidth = node.minWidth;
2975
2975
if (node.maxWidth == matchParent) {
2976
2976
if (selfSizeConfirmed) {
2977
- maxWidth = size.width;
2977
+ if (node.renderBox is _ConstraintRenderBox ) {
2978
+ maxWidth = double .infinity;
2979
+ } else {
2980
+ maxWidth = size.width;
2981
+ }
2978
2982
} else {
2979
2983
maxWidth = double .infinity;
2980
2984
}
@@ -3062,7 +3066,11 @@ class _ConstraintRenderBox extends RenderBox
3062
3066
minHeight = node.minHeight;
3063
3067
if (node.maxHeight == matchParent) {
3064
3068
if (selfSizeConfirmed) {
3065
- maxHeight = size.height;
3069
+ if (node.renderBox is _ConstraintRenderBox ) {
3070
+ maxHeight = double .infinity;
3071
+ } else {
3072
+ maxHeight = size.height;
3073
+ }
3066
3074
} else {
3067
3075
maxHeight = double .infinity;
3068
3076
}
You can’t perform that action at this time.
0 commit comments