From c21c821f3a4c2629bf9f44c1662840087281627c Mon Sep 17 00:00:00 2001 From: Stephen Houston Date: Fri, 27 May 2016 21:38:06 -0500 Subject: [PATCH] Elm Image: The introduction of elm_image_scale_type broke elm. Make TYPE_FILL the default. The default scale type should not be none as this breaks elm icon and elm image as it doesn't follow the default view of elm image before elm image scale was added. The default behavior is fill so this commit makes fill the default. --- src/lib/elementary/elm_image.eo | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/lib/elementary/elm_image.eo b/src/lib/elementary/elm_image.eo index 1a57191a0f..37975e2ade 100644 --- a/src/lib/elementary/elm_image.eo +++ b/src/lib/elementary/elm_image.eo @@ -6,19 +6,22 @@ enum Elm.Image.Scale_Type @since 1.18 ]] - none, [[Not scale the internal image]] - fill, [[Scale the internal image so that it matches the object's area exactly. - The image's aspect ratio might be changed.]] - fit_inside, [[Scale the internal image - so that it fits inside the object's area - while maintaining the aspect ratio. - At least one of the dimensions of the image - should be equal to the corresponding dimension of the object.]] - fit_outside [[Scale the internal image - so that it covers the entire object area - while maintaining the aspect ratio. - At least one of the dimensions of the image - should be equal to the corresponding dimension of the object.]] + fill, [[Scale the internal image so that it matches + the object's area exactly. + The image's aspect ratio might be changed.]] + fit_inside, [[Scale the internal image + so that it fits inside the object's area + while maintaining the aspect ratio. + At least one of the dimensions of the image + should be equal to the corresponding dimension + of the object.]] + fit_outside, [[Scale the internal image + so that it covers the entire object area + while maintaining the aspect ratio. + At least one of the dimensions of the image + should be equal to the corresponding + dimension of the object.]] + none [[Not scale the internal image]] } struct Elm.Image.Progress