From bd241f6a389f78f63e58e3bc878c6a8e3e748fa2 Mon Sep 17 00:00:00 2001 From: Jee-Yong Um Date: Thu, 12 Jan 2017 16:30:28 -0800 Subject: [PATCH] elm_hoversel: reset alignment before calculation Summary: When screen is rotated, _resizing_eval() will be called twice by hover_parent resize and hoversel movement. If the alignment is changed to the right in the first call because of the geometry of edje part is not updated yet (hoversel uses edje part geometry in calculation), hoversel keeps being right-aligned in the second call, even though there is enough space to show with default alignment. Test Plan: elementary_test -to hoversel Reviewers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4557 Signed-off-by: Cedric BAIL --- src/lib/elementary/elc_hoversel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/elementary/elc_hoversel.c b/src/lib/elementary/elc_hoversel.c index a1bc58e10c..e95ddc6c0e 100644 --- a/src/lib/elementary/elc_hoversel.c +++ b/src/lib/elementary/elc_hoversel.c @@ -235,6 +235,9 @@ _resizing_eval(Evas_Object *obj, Elm_Hoversel_Data *sd) if ((!sd->expanded) || (!sd->bx)) return; + elm_layout_signal_emit(sd->hover, "elm,state,align,default", "elm"); + edje_object_message_signal_process(elm_layout_edje_get(sd->hover)); + elm_box_recalculate(sd->bx); efl_gfx_size_hint_combined_min_get(sd->bx, &box_w, &box_h);