summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2020-08-28 14:54:11 +0900
committerHermet Park <chuneon.park@samsung.com>2020-08-28 14:54:11 +0900
commitb954640db8cd34061592c6c8865ddbeea7a3e640 (patch)
tree36e18616cf33666b20899c3711b229b29f9f4037
parentece7010a4a780b5460c0a50c1884445ad0df75c9 (diff)
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
-rw-r--r--src/lib/elementary/efl_ui_image.c3
1 files changed, 3 insertions, 0 deletions
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)
2605 EINA_SAFETY_ON_FALSE_RETURN(elm_orient >= 0 && elm_orient < 8); 2605 EINA_SAFETY_ON_FALSE_RETURN(elm_orient >= 0 && elm_orient < 8);
2606 sd->image_orient = elm_orient; 2606 sd->image_orient = elm_orient;
2607 efl_gfx_image_orientation_set(obj, efl_orient[elm_orient]); 2607 efl_gfx_image_orientation_set(obj, efl_orient[elm_orient]);
2608
2609 // to keep behavior compatibility, update inlined image orientation
2610 if (sd->img) efl_gfx_image_orientation_set(sd->img, efl_orient[elm_orient]);
2608} 2611}
2609 2612
2610EAPI Elm_Image_Orient 2613EAPI Elm_Image_Orient