Skip to content

Commit

Permalink
Changes for Shane
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo committed Jan 5, 2025
1 parent 01d5d65 commit 421344b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/src/Handlers/ScrollView/ScrollViewHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@ static Size MeasureContent(IContentView contentView, Thickness inset, double wid

var contentSize = Size.Zero;

if (widthConstraint != double.PositiveInfinity && Dimension.IsExplicitSet(contentView.Width))
if (!double.IsInfinity(widthConstraint) && Dimension.IsExplicitSet(contentView.Width))
{
widthConstraint = contentView.Width;
}

if (heightConstraint != double.PositiveInfinity && Dimension.IsExplicitSet(contentView.Height))
if (!double.IsInfinity(heightConstraint) && Dimension.IsExplicitSet(contentView.Height))
{
heightConstraint = contentView.Height;
}

if (content != null)
if (content is not null)
{
contentSize = content.Measure(widthConstraint - inset.HorizontalThickness,
heightConstraint - inset.VerticalThickness);
Expand Down

0 comments on commit 421344b

Please sign in to comment.