summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2017-01-12 16:30:28 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-01-12 16:30:30 -0800
commitbd241f6a389f78f63e58e3bc878c6a8e3e748fa2 (patch)
tree02938bcb65e9daf71f88641d461288c08c65e1d5 /src
parent12ee780653f7d4748fa682e3c9bc0401382721b6 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elc_hoversel.c3
1 files changed, 3 insertions, 0 deletions
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)
235 235
236 if ((!sd->expanded) || (!sd->bx)) return; 236 if ((!sd->expanded) || (!sd->bx)) return;
237 237
238 elm_layout_signal_emit(sd->hover, "elm,state,align,default", "elm");
239 edje_object_message_signal_process(elm_layout_edje_get(sd->hover));
240
238 elm_box_recalculate(sd->bx); 241 elm_box_recalculate(sd->bx);
239 efl_gfx_size_hint_combined_min_get(sd->bx, &box_w, &box_h); 242 efl_gfx_size_hint_combined_min_get(sd->bx, &box_w, &box_h);
240 243