hermet pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=b954640db8cd34061592c6c8865ddbeea7a3e640
commit b954640db8cd34061592c6c8865ddbeea7a3e640 Author: Shinwoo Kim <cinoo....@samsung.com> Date: Fri Aug 28 14:54:11 2020 +0900 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 --- src/lib/elementary/efl_ui_image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elementary/efl_ui_image.c b/src/lib/elementary/efl_ui_image.c index 1cabdf32c3..9e91dd7ac0 100644 --- a/src/lib/elementary/efl_ui_image.c +++ b/src/lib/elementary/efl_ui_image.c @@ -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 --