Skip to content

Commit 1f7462e

Browse files
author
fbchen
committed
fix a self wrapContent bug
1 parent e312728 commit 1f7462e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/constraint_layout.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ class _ConstraintRenderBox extends RenderBox
24192419

24202420
double resolvedHeight;
24212421
if (_height >= 0) {
2422-
resolvedHeight = constraints.constrainWidth(_height);
2422+
resolvedHeight = constraints.constrainHeight(_height);
24232423
} else {
24242424
if (_height == matchParent) {
24252425
if (constraints.maxHeight == double.infinity) {

0 commit comments

Comments
 (0)