Skip to content

Commit

Permalink
Alowl AbsoluteLayout children to auto size when height/width are not …
Browse files Browse the repository at this point in the history
…proportional (#7183)

Fixes #6500
  • Loading branch information
hartez committed May 16, 2022
1 parent 9f134f5 commit 76a532b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/src/Layouts/AbsoluteLayoutManager.cs
Expand Up @@ -132,8 +132,8 @@ static double ResolveChildMeasureConstraint(double boundsValue, bool proportiona
{
if (boundsValue < 0)
{
// If the child view doesn't have bounds set by the AbsoluteLayout, then we'll measure using the full constraint value
return constraint;
// If the child view doesn't have bounds set by the AbsoluteLayout, then we'll let it auto-size
return double.PositiveInfinity;
}

if (proportional)
Expand Down

0 comments on commit 76a532b

Please sign in to comment.