Skip to content

Commit

Permalink
Added log warning for DownsampleToViewSize failed scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Sep 21, 2017
1 parent 3c5f6d9 commit 46e021b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/FFImageLoading.Forms/CachedImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,8 @@ protected internal virtual void SetupOnBeforeImageLoading(out Work.TaskParameter
// Fallback to a constant value due to a lot people misusing DownsampleToViewSize property
// More here: https://github.com/luberda-molinet/FFImageLoading/wiki/Xamarin.Forms-API#downsampletoviewsize-bool-default-false
imageLoader.DownSample(height: 100);

ImageService.Instance.Config.Logger?.Error("DownsampleToViewSize failed - view is expandable in both dimensions, so it doesn't have a size. Please use DownsampleWidth or DownsampleHeight property.");
}

// RetryCount
Expand Down

0 comments on commit 46e021b

Please sign in to comment.