efl_ui_image: update orientation immediately

Summary:
It is able to get orientation information of inlined image object.
This information should be same during its life time.

The inlined image object got correct information only after size
calculation, so there is a kind of timing issue.

An example will be attached for more details.

I am not sure what the regression bug mentioned on D6855, but
this will keep compatibility of behavior.

Actually it seems that the compatibility was broken by D9686
which does not call _efl_ui_image_sizing_eval immediately.

Test Plan: {F3947703}

Reviewers: Hermet, jsuya, herb

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12114
This commit is contained in:
Shinwoo Kim 2020-08-28 14:54:11 +09:00 committed by Hermet Park
parent ece7010a4a
commit b954640db8
1 changed files with 3 additions and 0 deletions

View File

@ -2605,6 +2605,9 @@ elm_image_orient_set(Evas_Object *obj, Elm_Image_Orient elm_orient)
EINA_SAFETY_ON_FALSE_RETURN(elm_orient >= 0 && elm_orient < 8);
sd->image_orient = elm_orient;
efl_gfx_image_orientation_set(obj, efl_orient[elm_orient]);
// to keep behavior compatibility, update inlined image orientation
if (sd->img) efl_gfx_image_orientation_set(sd->img, efl_orient[elm_orient]);
}
EAPI Elm_Image_Orient