Skip to content

Commit

Permalink
fix a self wrapContent bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fbchen committed Apr 28, 2022
1 parent e312728 commit 1f7462e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/constraint_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2419,7 +2419,7 @@ class _ConstraintRenderBox extends RenderBox

double resolvedHeight;
if (_height >= 0) {
resolvedHeight = constraints.constrainWidth(_height);
resolvedHeight = constraints.constrainHeight(_height);
} else {
if (_height == matchParent) {
if (constraints.maxHeight == double.infinity) {
Expand Down

0 comments on commit 1f7462e

Please sign in to comment.