You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is missing, but this is an important information. Imagine a view sized 100x150 and an image sized 200x300. The old description could be interpreted in a way, that the image doesn't scale at all!
Copy file name to clipboardExpand all lines: docs/image.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -395,7 +395,9 @@ More details about `resize` and `scale` can be found at http://frescolib.org/doc
395
395
396
396
Determines how to resize the image when the frame doesn't match the raw image dimensions. Defaults to `cover`.
397
397
398
-
-`cover`: Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
398
+
-`cover`: Scale the image uniformly (maintain the image's aspect ratio) so that
399
+
* both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding)
400
+
* at least one dimension of the scaled image will be equal to the corresponding dimension of the view (minus padding)
399
401
400
402
-`contain`: Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).
0 commit comments