cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=bd241f6a389f78f63e58e3bc878c6a8e3e748fa2

commit bd241f6a389f78f63e58e3bc878c6a8e3e748fa2
Author: Jee-Yong Um <jc9...@samsung.com>
Date:   Thu Jan 12 16:30:28 2017 -0800

    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 <ced...@osg.samsung.com>
---
 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 a1bc58e..e95ddc6 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);
 

-- 


Reply via email to