ui_image: fix wrong scale_method expand behavior.

Previous fix 46ee203331 is not perfect
at some cases, its condition should be this.
This commit is contained in:
Hermet Park 2020-01-02 14:14:47 +09:00
parent 5c7fe5ac31
commit 991ca66681
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ _image_sizing_eval(Eo *obj, Efl_Ui_Image_Data *sd, Evas_Object *img)
w = ((double)iw * h) / (double)ih;
break;
case EFL_GFX_IMAGE_SCALE_METHOD_EXPAND:
if (iw < ih)
if ((iw - ow) < (ih - oh))
{
w = ow;
h = ((double)ih * w) / (double)iw;