Skip to content

Commit 1ff4662

Browse files
Update CachedImage.cs
1 parent 1c05fe8 commit 1ff4662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/FFImageLoading.Forms/CachedImage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ protected override SizeRequest OnMeasure(double widthConstraint, double heightCo
528528
height = desiredHeight * (width / desiredWidth);
529529
}
530530

531-
return new SizeRequest(new Size(width, height));
531+
return new SizeRequest(new Size(double.IsNaN(width) ? 0 : width, double.IsNaN(height) ? 0 : height));
532532
}
533533

534534
if (double.IsPositiveInfinity(widthConstraint) && double.IsPositiveInfinity(heightConstraint))

0 commit comments

Comments
 (0)