forked from enlightenment/efl
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 <cedric@osg.samsung.com>
This commit is contained in:
parent
12ee780653
commit
bd241f6a38
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue