From fd9f26769b66c43efb637bbc171f0db6aca0c287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82adys=C5=82aw=20Raczek?= Date: Wed, 17 Nov 2021 11:46:27 +0100 Subject: [PATCH] Update image.md 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! --- docs/image.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/image.md b/docs/image.md index 973fb094423..7ca8a9acf3e 100644 --- a/docs/image.md +++ b/docs/image.md @@ -395,7 +395,9 @@ More details about `resize` and `scale` can be found at http://frescolib.org/doc Determines how to resize the image when the frame doesn't match the raw image dimensions. Defaults to `cover`. -- `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). +- `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) + * at least one dimension of the scaled image will be equal to the corresponding dimension of the view (minus padding) - `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).