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.
This commit is contained in:
Stephen Houston 2016-05-27 21:38:06 -05:00
parent 860b821f00
commit c21c821f3a
1 changed files with 16 additions and 13 deletions

View File

@ -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