forked from enlightenment/efl
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:
parent
5c7fe5ac31
commit
991ca66681
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue