elm_hoversel: reset alignment before calculation
authorJee-Yong Um <jc9.um@samsung.com>
Fri, 13 Jan 2017 00:30:28 +0000 (16:30 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 13 Jan 2017 00:30:30 +0000 (16:30 -0800)
commitbd241f6a389f78f63e58e3bc878c6a8e3e748fa2
tree02938bcb65e9daf71f88641d461288c08c65e1d5
parent12ee780653f7d4748fa682e3c9bc0401382721b6
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>
src/lib/elementary/elc_hoversel.c